You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

257 lines
9.1 KiB

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Shentun.Peis.Migrations
{
public partial class init20240503003 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<char>(
name: "upload_qztl_flag",
table: "patient_register_exter",
type: "character(1)",
nullable: true,
oldClrType: typeof(char),
oldType: "character(1)");
migrationBuilder.AlterColumn<string>(
name: "remark4",
table: "patient_register_exter",
type: "character varying(100)",
maxLength: 100,
nullable: true,
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "remark3",
table: "patient_register_exter",
type: "character varying(100)",
maxLength: 100,
nullable: true,
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "remark2",
table: "patient_register_exter",
type: "character varying(100)",
maxLength: 100,
nullable: true,
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
migrationBuilder.AlterColumn<char>(
name: "qztl_type",
table: "patient_register_exter",
type: "character(1)",
nullable: true,
oldClrType: typeof(char),
oldType: "character(1)");
migrationBuilder.AlterColumn<char>(
name: "qztl_is_wh",
table: "patient_register_exter",
type: "character(1)",
nullable: true,
oldClrType: typeof(char),
oldType: "character(1)");
migrationBuilder.AlterColumn<char>(
name: "qztl_is_main",
table: "patient_register_exter",
type: "character(1)",
nullable: true,
oldClrType: typeof(char),
oldType: "character(1)");
migrationBuilder.AlterColumn<char>(
name: "qztl_is_gt",
table: "patient_register_exter",
type: "character(1)",
nullable: true,
oldClrType: typeof(char),
oldType: "character(1)");
migrationBuilder.AlterColumn<char>(
name: "qztl_is_fj",
table: "patient_register_exter",
type: "character(1)",
nullable: true,
oldClrType: typeof(char),
oldType: "character(1)");
migrationBuilder.AlterColumn<char>(
name: "qztl_is_cy",
table: "patient_register_exter",
type: "character(1)",
nullable: true,
oldClrType: typeof(char),
oldType: "character(1)");
migrationBuilder.AlterColumn<char>(
name: "qztl_is_cw",
table: "patient_register_exter",
type: "character(1)",
nullable: true,
oldClrType: typeof(char),
oldType: "character(1)");
migrationBuilder.AlterColumn<string>(
name: "planuserid",
table: "patient_register_exter",
type: "character varying(20)",
maxLength: 20,
nullable: true,
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
migrationBuilder.AlterColumn<char>(
name: "is_qztl_import",
table: "patient_register_exter",
type: "character(1)",
nullable: true,
oldClrType: typeof(char),
oldType: "character(1)");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<char>(
name: "upload_qztl_flag",
table: "patient_register_exter",
type: "character(1)",
nullable: false,
defaultValue: '',
oldClrType: typeof(char),
oldType: "character(1)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "remark4",
table: "patient_register_exter",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "character varying(100)",
oldMaxLength: 100,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "remark3",
table: "patient_register_exter",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "character varying(100)",
oldMaxLength: 100,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "remark2",
table: "patient_register_exter",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "character varying(100)",
oldMaxLength: 100,
oldNullable: true);
migrationBuilder.AlterColumn<char>(
name: "qztl_type",
table: "patient_register_exter",
type: "character(1)",
nullable: false,
defaultValue: '',
oldClrType: typeof(char),
oldType: "character(1)",
oldNullable: true);
migrationBuilder.AlterColumn<char>(
name: "qztl_is_wh",
table: "patient_register_exter",
type: "character(1)",
nullable: false,
defaultValue: '',
oldClrType: typeof(char),
oldType: "character(1)",
oldNullable: true);
migrationBuilder.AlterColumn<char>(
name: "qztl_is_main",
table: "patient_register_exter",
type: "character(1)",
nullable: false,
defaultValue: '',
oldClrType: typeof(char),
oldType: "character(1)",
oldNullable: true);
migrationBuilder.AlterColumn<char>(
name: "qztl_is_gt",
table: "patient_register_exter",
type: "character(1)",
nullable: false,
defaultValue: '',
oldClrType: typeof(char),
oldType: "character(1)",
oldNullable: true);
migrationBuilder.AlterColumn<char>(
name: "qztl_is_fj",
table: "patient_register_exter",
type: "character(1)",
nullable: false,
defaultValue: '',
oldClrType: typeof(char),
oldType: "character(1)",
oldNullable: true);
migrationBuilder.AlterColumn<char>(
name: "qztl_is_cy",
table: "patient_register_exter",
type: "character(1)",
nullable: false,
defaultValue: '',
oldClrType: typeof(char),
oldType: "character(1)",
oldNullable: true);
migrationBuilder.AlterColumn<char>(
name: "qztl_is_cw",
table: "patient_register_exter",
type: "character(1)",
nullable: false,
defaultValue: '',
oldClrType: typeof(char),
oldType: "character(1)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "planuserid",
table: "patient_register_exter",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "character varying(20)",
oldMaxLength: 20,
oldNullable: true);
migrationBuilder.AlterColumn<char>(
name: "is_qztl_import",
table: "patient_register_exter",
type: "character(1)",
nullable: false,
defaultValue: '',
oldClrType: typeof(char),
oldType: "character(1)",
oldNullable: true);
}
}
}