3 changed files with 17198 additions and 0 deletions
-
17049src/Shentun.Peis.EntityFrameworkCore/Migrations/20260420033358_update_register_add_give_up_check_file_add_table_give_up_check_template.Designer.cs
-
73src/Shentun.Peis.EntityFrameworkCore/Migrations/20260420033358_update_register_add_give_up_check_file_add_table_give_up_check_template.cs
-
76src/Shentun.Peis.EntityFrameworkCore/Migrations/PeisDbContextModelSnapshot.cs
17049
src/Shentun.Peis.EntityFrameworkCore/Migrations/20260420033358_update_register_add_give_up_check_file_add_table_give_up_check_template.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,73 @@ |
|||||
|
using System; |
||||
|
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
|
||||
|
#nullable disable |
||||
|
|
||||
|
namespace Shentun.Peis.Migrations |
||||
|
{ |
||||
|
public partial class update_register_add_give_up_check_file_add_table_give_up_check_template : Migration |
||||
|
{ |
||||
|
protected override void Up(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "give_up_check_file", |
||||
|
table: "register_check", |
||||
|
type: "character varying(200)", |
||||
|
maxLength: 200, |
||||
|
nullable: true, |
||||
|
comment: "弃检模板文件路径"); |
||||
|
|
||||
|
migrationBuilder.AddColumn<DateTime>( |
||||
|
name: "sum_check_operating_time", |
||||
|
table: "patient_register", |
||||
|
type: "timestamp without time zone", |
||||
|
nullable: true, |
||||
|
comment: "总检操作时间"); |
||||
|
|
||||
|
migrationBuilder.AddColumn<Guid>( |
||||
|
name: "sum_check_operating_user", |
||||
|
table: "patient_register", |
||||
|
type: "uuid", |
||||
|
nullable: true, |
||||
|
comment: "总检操作者"); |
||||
|
|
||||
|
migrationBuilder.CreateTable( |
||||
|
name: "give_up_check_template", |
||||
|
columns: table => new |
||||
|
{ |
||||
|
id = table.Column<Guid>(type: "uuid", nullable: false), |
||||
|
display_name = table.Column<string>(type: "character varying(100)", maxLength: 100, nullable: false, comment: "模板名称"), |
||||
|
informed_consent_template_file = table.Column<string>(type: "character varying(200)", maxLength: 200, nullable: false, comment: "模板路径"), |
||||
|
is_active = table.Column<char>(type: "character(1)", maxLength: 1, nullable: false, defaultValueSql: "'N'", comment: "是否启用 只能启用一个"), |
||||
|
concurrency_stamp = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: true), |
||||
|
creation_time = table.Column<DateTime>(type: "timestamp without time zone", nullable: false), |
||||
|
creator_id = table.Column<Guid>(type: "uuid", nullable: false), |
||||
|
last_modification_time = table.Column<DateTime>(type: "timestamp without time zone", nullable: false), |
||||
|
last_modifier_id = table.Column<Guid>(type: "uuid", nullable: false) |
||||
|
}, |
||||
|
constraints: table => |
||||
|
{ |
||||
|
table.PrimaryKey("PK_give_up_check_template", x => x.id); |
||||
|
}, |
||||
|
comment: "弃检模板"); |
||||
|
} |
||||
|
|
||||
|
protected override void Down(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.DropTable( |
||||
|
name: "give_up_check_template"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "give_up_check_file", |
||||
|
table: "register_check"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "sum_check_operating_time", |
||||
|
table: "patient_register"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "sum_check_operating_user", |
||||
|
table: "patient_register"); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue