แก้ model org add agency
This commit is contained in:
parent
d8bc0f1a50
commit
3d0a56d277
6 changed files with 25519 additions and 20 deletions
|
|
@ -0,0 +1,38 @@
|
|||
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");
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue