migreation 删除
This commit is contained in:
parent
c98bc63e14
commit
32d91ec6e7
File diff suppressed because it is too large
Load Diff
@ -1,64 +0,0 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class wyw2024032501 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "T_BS_OPERATE_LOG",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
LOGTYPE = table.Column<int>(type: "int", nullable: false),
|
||||
DATA_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
DATA_ID_SUB = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
OPERATEPOINT = table.Column<int>(type: "int", nullable: false),
|
||||
USER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
USRTNAME = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
|
||||
ORDERNO = table.Column<int>(type: "int", nullable: false),
|
||||
OPERTETIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
ISINTTIME = table.Column<bool>(type: "bit", nullable: true),
|
||||
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
||||
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
||||
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_T_BS_OPERATE_LOG", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_BS_OPERATE_LOG_T_FM_ORGANIZATION_ORG_ID",
|
||||
column: x => x.ORG_ID,
|
||||
principalTable: "T_FM_ORGANIZATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_BS_OPERATE_LOG_ORG_ID",
|
||||
table: "T_BS_OPERATE_LOG",
|
||||
column: "ORG_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_BS_OPERATE_LOG_USER_ID",
|
||||
table: "T_BS_OPERATE_LOG",
|
||||
column: "USER_ID");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_BS_OPERATE_LOG");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,126 +0,0 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class wyw2024042401 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_T_CM_DRILL_PLAN_STANDARD_CREATE_T_CM_DRILL_PLAN_DETAIL_PLAN_ID",
|
||||
table: "T_CM_DRILL_PLAN_STANDARD_CREATE");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_T_CM_DRILL_PLAN_STANDARD_CREATE_PLAN_ID",
|
||||
table: "T_CM_DRILL_PLAN_STANDARD_CREATE");
|
||||
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "Nav_PlanID",
|
||||
table: "T_CM_DRILL_PLAN_STANDARD_CREATE",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "T_CM_DRILL_RECORD_STANDER_FILE",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
RECORD_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
IMG_FILE_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
||||
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
||||
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_T_CM_DRILL_RECORD_STANDER_FILE", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_CM_DRILL_RECORD_STANDER_FILE_T_CM_DRILL_RECORD_RECORD_ID",
|
||||
column: x => x.RECORD_ID,
|
||||
principalTable: "T_CM_DRILL_RECORD",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_CM_DRILL_RECORD_STANDER_FILE_T_FM_ORGANIZATION_ORG_ID",
|
||||
column: x => x.ORG_ID,
|
||||
principalTable: "T_FM_ORGANIZATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_CM_DRILL_RECORD_STANDER_FILE_T_PF_IMG_FILE_IMG_FILE_ID",
|
||||
column: x => x.IMG_FILE_ID,
|
||||
principalTable: "T_PF_IMG_FILE",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_CM_DRILL_PLAN_STANDARD_CREATE_Nav_PlanID",
|
||||
table: "T_CM_DRILL_PLAN_STANDARD_CREATE",
|
||||
column: "Nav_PlanID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_CM_DRILL_RECORD_STANDER_FILE_IMG_FILE_ID",
|
||||
table: "T_CM_DRILL_RECORD_STANDER_FILE",
|
||||
column: "IMG_FILE_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_CM_DRILL_RECORD_STANDER_FILE_ORG_ID",
|
||||
table: "T_CM_DRILL_RECORD_STANDER_FILE",
|
||||
column: "ORG_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_CM_DRILL_RECORD_STANDER_FILE_RECORD_ID",
|
||||
table: "T_CM_DRILL_RECORD_STANDER_FILE",
|
||||
column: "RECORD_ID");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_T_CM_DRILL_PLAN_STANDARD_CREATE_T_CM_DRILL_PLAN_DETAIL_Nav_PlanID",
|
||||
table: "T_CM_DRILL_PLAN_STANDARD_CREATE",
|
||||
column: "Nav_PlanID",
|
||||
principalTable: "T_CM_DRILL_PLAN_DETAIL",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_T_CM_DRILL_PLAN_STANDARD_CREATE_T_CM_DRILL_PLAN_DETAIL_Nav_PlanID",
|
||||
table: "T_CM_DRILL_PLAN_STANDARD_CREATE");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_CM_DRILL_RECORD_STANDER_FILE");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_T_CM_DRILL_PLAN_STANDARD_CREATE_Nav_PlanID",
|
||||
table: "T_CM_DRILL_PLAN_STANDARD_CREATE");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Nav_PlanID",
|
||||
table: "T_CM_DRILL_PLAN_STANDARD_CREATE");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_CM_DRILL_PLAN_STANDARD_CREATE_PLAN_ID",
|
||||
table: "T_CM_DRILL_PLAN_STANDARD_CREATE",
|
||||
column: "PLAN_ID");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_T_CM_DRILL_PLAN_STANDARD_CREATE_T_CM_DRILL_PLAN_DETAIL_PLAN_ID",
|
||||
table: "T_CM_DRILL_PLAN_STANDARD_CREATE",
|
||||
column: "PLAN_ID",
|
||||
principalTable: "T_CM_DRILL_PLAN_DETAIL",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,23 +0,0 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class wyw2024043001 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "CHECKOBJECT",
|
||||
table: "T_BS_RISK_SUBMIT",
|
||||
type: "int",
|
||||
nullable: true);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "CHECKOBJECT",
|
||||
table: "T_BS_RISK_SUBMIT");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,50 +0,0 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class wjn2024052701 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<Guid>(
|
||||
name: "DEPARTMENT_ID",
|
||||
table: "T_FM_DEPARTMENT_SCHEDULING",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true,
|
||||
oldClrType: typeof(Guid),
|
||||
oldType: "uniqueidentifier");
|
||||
|
||||
migrationBuilder.AlterColumn<Guid>(
|
||||
name: "CLASS_ID",
|
||||
table: "T_FM_DEPARTMENT_SCHEDULING",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true,
|
||||
oldClrType: typeof(Guid),
|
||||
oldType: "uniqueidentifier");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<Guid>(
|
||||
name: "DEPARTMENT_ID",
|
||||
table: "T_FM_DEPARTMENT_SCHEDULING",
|
||||
type: "uniqueidentifier",
|
||||
nullable: false,
|
||||
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"),
|
||||
oldClrType: typeof(Guid),
|
||||
oldType: "uniqueidentifier",
|
||||
oldNullable: true);
|
||||
|
||||
migrationBuilder.AlterColumn<Guid>(
|
||||
name: "CLASS_ID",
|
||||
table: "T_FM_DEPARTMENT_SCHEDULING",
|
||||
type: "uniqueidentifier",
|
||||
nullable: false,
|
||||
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"),
|
||||
oldClrType: typeof(Guid),
|
||||
oldType: "uniqueidentifier",
|
||||
oldNullable: true);
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,46 +0,0 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class wyw2024062401 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "REMARK",
|
||||
table: "T_BS_SAFE_CHECK_DETAIL",
|
||||
type: "nvarchar(100)",
|
||||
maxLength: 100,
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "REMARK",
|
||||
table: "T_BS_RISK_SUBMIT_CONTENT_DEAL",
|
||||
type: "nvarchar(100)",
|
||||
maxLength: 100,
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "REMARK",
|
||||
table: "T_BS_RISK_SUBMIT_CONTENT",
|
||||
type: "nvarchar(100)",
|
||||
maxLength: 100,
|
||||
nullable: true);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "REMARK",
|
||||
table: "T_BS_SAFE_CHECK_DETAIL");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "REMARK",
|
||||
table: "T_BS_RISK_SUBMIT_CONTENT_DEAL");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "REMARK",
|
||||
table: "T_BS_RISK_SUBMIT_CONTENT");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,78 +0,0 @@
|
||||
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");
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user