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.

53 lines
1.6 KiB

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<Guid>(
name: "appoint_patient_register_id",
table: "patient_register",
type: "uuid",
nullable: true,
comment: "预约人员登记ID");
migrationBuilder.AddColumn<char>(
name: "is_disable_pregnancy",
table: "asbitem",
type: "character(1)",
maxLength: 1,
nullable: false,
defaultValueSql: "'N'",
comment: "怀孕期间禁止检查");
migrationBuilder.AddColumn<char>(
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");
}
}
}