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