using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Shentun.Peis.Migrations { public partial class init20240603001 : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "appoint_patient_register_id", table: "patient_register", type: "uuid", nullable: true, comment: "预约人员登记ID"); migrationBuilder.AddColumn( name: "is_disable_pregnancy", table: "asbitem", type: "character(1)", maxLength: 1, nullable: false, defaultValueSql: "'N'", comment: "怀孕期间禁止检查"); migrationBuilder.AddColumn( name: "is_disable_prepare_pregnancy", table: "asbitem", type: "character(1)", maxLength: 1, nullable: false, defaultValueSql: "'N'", comment: "备孕期间禁止检查"); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "appoint_patient_register_id", table: "patient_register"); migrationBuilder.DropColumn( name: "is_disable_pregnancy", table: "asbitem"); migrationBuilder.DropColumn( name: "is_disable_prepare_pregnancy", table: "asbitem"); } } }