3 changed files with 13543 additions and 8 deletions
-
13431src/Shentun.Peis.EntityFrameworkCore/Migrations/20240412030552_init20240412005.Designer.cs
-
104src/Shentun.Peis.EntityFrameworkCore/Migrations/20240412030552_init20240412005.cs
-
16src/Shentun.Peis.EntityFrameworkCore/Migrations/PeisDbContextModelSnapshot.cs
13431
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240412030552_init20240412005.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,104 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
#nullable disable |
|||
|
|||
namespace Shentun.Peis.Migrations |
|||
{ |
|||
public partial class init20240412005 : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AlterColumn<DateTime>( |
|||
name: "check_date", |
|||
table: "register_check_item", |
|||
type: "timestamp without time zone", |
|||
nullable: true, |
|||
comment: "检查日期", |
|||
oldClrType: typeof(DateOnly), |
|||
oldType: "date", |
|||
oldNullable: true, |
|||
oldComment: "检查日期"); |
|||
|
|||
migrationBuilder.AlterColumn<DateTime>( |
|||
name: "critical_value_process_date", |
|||
table: "register_check", |
|||
type: "timestamp without time zone", |
|||
nullable: true, |
|||
comment: "危急值处理日期", |
|||
oldClrType: typeof(DateOnly), |
|||
oldType: "date", |
|||
oldNullable: true, |
|||
oldComment: "危急值处理日期"); |
|||
|
|||
migrationBuilder.AlterColumn<DateTime>( |
|||
name: "critical_value_create_date", |
|||
table: "register_check", |
|||
type: "timestamp without time zone", |
|||
nullable: true, |
|||
comment: "危急值创建日期", |
|||
oldClrType: typeof(DateOnly), |
|||
oldType: "date", |
|||
oldNullable: true, |
|||
oldComment: "危急值创建日期"); |
|||
|
|||
migrationBuilder.AlterColumn<DateTime>( |
|||
name: "check_date", |
|||
table: "register_check", |
|||
type: "timestamp without time zone", |
|||
nullable: true, |
|||
comment: "检查日期", |
|||
oldClrType: typeof(DateOnly), |
|||
oldType: "date", |
|||
oldNullable: true, |
|||
oldComment: "检查日期"); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AlterColumn<DateOnly>( |
|||
name: "check_date", |
|||
table: "register_check_item", |
|||
type: "date", |
|||
nullable: true, |
|||
comment: "检查日期", |
|||
oldClrType: typeof(DateTime), |
|||
oldType: "timestamp without time zone", |
|||
oldNullable: true, |
|||
oldComment: "检查日期"); |
|||
|
|||
migrationBuilder.AlterColumn<DateOnly>( |
|||
name: "critical_value_process_date", |
|||
table: "register_check", |
|||
type: "date", |
|||
nullable: true, |
|||
comment: "危急值处理日期", |
|||
oldClrType: typeof(DateTime), |
|||
oldType: "timestamp without time zone", |
|||
oldNullable: true, |
|||
oldComment: "危急值处理日期"); |
|||
|
|||
migrationBuilder.AlterColumn<DateOnly>( |
|||
name: "critical_value_create_date", |
|||
table: "register_check", |
|||
type: "date", |
|||
nullable: true, |
|||
comment: "危急值创建日期", |
|||
oldClrType: typeof(DateTime), |
|||
oldType: "timestamp without time zone", |
|||
oldNullable: true, |
|||
oldComment: "危急值创建日期"); |
|||
|
|||
migrationBuilder.AlterColumn<DateOnly>( |
|||
name: "check_date", |
|||
table: "register_check", |
|||
type: "date", |
|||
nullable: true, |
|||
comment: "检查日期", |
|||
oldClrType: typeof(DateTime), |
|||
oldType: "timestamp without time zone", |
|||
oldNullable: true, |
|||
oldComment: "检查日期"); |
|||
} |
|||
} |
|||
} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue