mh_lcmk_sms_service/APT.Data.Migrations/Migrations/20240805033633_wyw2024080501.cs
wyw 89a3118bce 检查表 上报表 添加 取消人 取消原因 是否取消 字段
检查制定取消  取消原因入库(修改原有方法)
2024-08-05 16:12:41 +08:00

79 lines
2.4 KiB
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace APT.Data.Migrations.Migrations
{
public partial class wyw2024080501 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "IS_CANCEL",
table: "T_BS_SAFE_CHECK",
type: "bit",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn<string>(
name: "REMARK_CANCEL",
table: "T_BS_SAFE_CHECK",
type: "nvarchar(500)",
maxLength: 500,
nullable: true);
migrationBuilder.AddColumn<Guid>(
name: "USER_ID_CANCEL",
table: "T_BS_SAFE_CHECK",
type: "uniqueidentifier",
nullable: true);
migrationBuilder.AddColumn<bool>(
name: "IS_CANCEL",
table: "T_BS_RISK_SUBMIT",
type: "bit",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn<string>(
name: "REMARK_CANCEL",
table: "T_BS_RISK_SUBMIT",
type: "nvarchar(500)",
maxLength: 500,
nullable: true);
migrationBuilder.AddColumn<Guid>(
name: "USER_ID_CANCEL",
table: "T_BS_RISK_SUBMIT",
type: "uniqueidentifier",
nullable: true);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "IS_CANCEL",
table: "T_BS_SAFE_CHECK");
migrationBuilder.DropColumn(
name: "REMARK_CANCEL",
table: "T_BS_SAFE_CHECK");
migrationBuilder.DropColumn(
name: "USER_ID_CANCEL",
table: "T_BS_SAFE_CHECK");
migrationBuilder.DropColumn(
name: "IS_CANCEL",
table: "T_BS_RISK_SUBMIT");
migrationBuilder.DropColumn(
name: "REMARK_CANCEL",
table: "T_BS_RISK_SUBMIT");
migrationBuilder.DropColumn(
name: "USER_ID_CANCEL",
table: "T_BS_RISK_SUBMIT");
}
}
}