mh_lcmk_sms_service/APT.Data.Migrations/Migrations/20240805033633_wyw2024080501.cs

79 lines
2.4 KiB
C#
Raw Normal View History

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");
}
}
}