Browse Source

迁移

bjmzak
wxd 2 years ago
parent
commit
b4039a2bca
  1. 13431
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240412030552_init20240412005.Designer.cs
  2. 104
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240412030552_init20240412005.cs
  3. 16
      src/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

104
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240412030552_init20240412005.cs

@ -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: "检查日期");
}
}
}

16
src/Shentun.Peis.EntityFrameworkCore/Migrations/PeisDbContextModelSnapshot.cs

@ -7109,8 +7109,8 @@ namespace Shentun.Peis.Migrations
.HasColumnName("auditor_user_id")
.HasComment("审核医生ID");
b.Property<DateOnly?>("CheckDate")
.HasColumnType("date")
b.Property<DateTime?>("CheckDate")
.HasColumnType("timestamp without time zone")
.HasColumnName("check_date")
.HasComment("检查日期");
@ -7163,8 +7163,8 @@ namespace Shentun.Peis.Migrations
.HasColumnName("critical_value")
.HasComment("危急值");
b.Property<DateOnly?>("CriticalValueCreateDate")
.HasColumnType("date")
b.Property<DateTime?>("CriticalValueCreateDate")
.HasColumnType("timestamp without time zone")
.HasColumnName("critical_value_create_date")
.HasComment("危急值创建日期");
@ -7182,8 +7182,8 @@ namespace Shentun.Peis.Migrations
.HasColumnName("critical_value_process_content")
.HasComment("危急值处理内容");
b.Property<DateOnly?>("CriticalValueProcessDate")
.HasColumnType("date")
b.Property<DateTime?>("CriticalValueProcessDate")
.HasColumnType("timestamp without time zone")
.HasColumnName("critical_value_process_date")
.HasComment("危急值处理日期");
@ -7438,8 +7438,8 @@ namespace Shentun.Peis.Migrations
.IsFixedLength()
.HasComment("项目编号");
b.Property<DateOnly?>("CheckDate")
.HasColumnType("date")
b.Property<DateTime?>("CheckDate")
.HasColumnType("timestamp without time zone")
.HasColumnName("check_date")
.HasComment("检查日期");

Loading…
Cancel
Save