38 lines
1.2 KiB
C#
38 lines
1.2 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace BMA.EHR.Infrastructure.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class updatetableorgaddorgagency2 : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.RenameColumn(
|
|
name: "OrganizationGovernmentAgency",
|
|
table: "Organizations",
|
|
newName: "OrganizationGovernmentAgencyId");
|
|
|
|
migrationBuilder.RenameColumn(
|
|
name: "OrganizationAgency",
|
|
table: "Organizations",
|
|
newName: "OrganizationAgencyId");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.RenameColumn(
|
|
name: "OrganizationGovernmentAgencyId",
|
|
table: "Organizations",
|
|
newName: "OrganizationGovernmentAgency");
|
|
|
|
migrationBuilder.RenameColumn(
|
|
name: "OrganizationAgencyId",
|
|
table: "Organizations",
|
|
newName: "OrganizationAgency");
|
|
}
|
|
}
|
|
}
|