3 changed files with 13502 additions and 32 deletions
-
13418src/Shentun.Peis.EntityFrameworkCore/Migrations/20240325113122_init20240325003.Designer.cs
-
65src/Shentun.Peis.EntityFrameworkCore/Migrations/20240325113122_init20240325003.cs
-
51src/Shentun.Peis.EntityFrameworkCore/Migrations/PeisDbContextModelSnapshot.cs
13418
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240325113122_init20240325003.Designer.cs
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -0,0 +1,65 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
#nullable disable |
|||
|
|||
namespace Shentun.Peis.Migrations |
|||
{ |
|||
public partial class init20240325003 : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AlterColumn<Guid>( |
|||
name: "customer_org_register_id", |
|||
table: "patient_register", |
|||
type: "uuid", |
|||
nullable: false, |
|||
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"), |
|||
comment: "客户单位登记ID", |
|||
oldClrType: typeof(Guid), |
|||
oldType: "uuid", |
|||
oldNullable: true, |
|||
oldComment: "客户单位登记ID"); |
|||
|
|||
migrationBuilder.AlterColumn<Guid>( |
|||
name: "customer_org_id", |
|||
table: "patient_register", |
|||
type: "uuid", |
|||
fixedLength: true, |
|||
nullable: false, |
|||
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"), |
|||
comment: "单位编号", |
|||
oldClrType: typeof(Guid), |
|||
oldType: "uuid", |
|||
oldFixedLength: true, |
|||
oldNullable: true, |
|||
oldComment: "单位编号"); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AlterColumn<Guid>( |
|||
name: "customer_org_register_id", |
|||
table: "patient_register", |
|||
type: "uuid", |
|||
nullable: true, |
|||
comment: "客户单位登记ID", |
|||
oldClrType: typeof(Guid), |
|||
oldType: "uuid", |
|||
oldDefaultValue: new Guid("00000000-0000-0000-0000-000000000000"), |
|||
oldComment: "客户单位登记ID"); |
|||
|
|||
migrationBuilder.AlterColumn<Guid>( |
|||
name: "customer_org_id", |
|||
table: "patient_register", |
|||
type: "uuid", |
|||
fixedLength: true, |
|||
nullable: true, |
|||
comment: "单位编号", |
|||
oldClrType: typeof(Guid), |
|||
oldType: "uuid", |
|||
oldFixedLength: true, |
|||
oldComment: "单位编号"); |
|||
} |
|||
} |
|||
} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue