213
This commit is contained in:
parent
5c1264d4e9
commit
1b34819253
@ -142,15 +142,15 @@ namespace APT.Data.Migrations.Migrations
|
||||
table: "T_SE_TRAIN_RECORD_PAPER",
|
||||
column: "TEXT_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_COURSEWEARLIBRARY_ID",
|
||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
||||
column: "COURSEWEARLIBRARY_ID");
|
||||
//migrationBuilder.CreateIndex(
|
||||
// name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_COURSEWEARLIBRARY_ID",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
||||
// column: "COURSEWEARLIBRARY_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_NOTIFY_ID",
|
||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
||||
column: "NOTIFY_ID");
|
||||
//migrationBuilder.CreateIndex(
|
||||
// name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_NOTIFY_ID",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
||||
// column: "NOTIFY_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_ORG_ID",
|
||||
@ -172,29 +172,29 @@ namespace APT.Data.Migrations.Migrations
|
||||
table: "T_SE_TRAIN_RECORD_TEXT",
|
||||
column: "USER_ID");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_FM_ORGANIZATION_ORG_ID",
|
||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
||||
column: "ORG_ID",
|
||||
principalTable: "T_FM_ORGANIZATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
//migrationBuilder.AddForeignKey(
|
||||
// name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_FM_ORGANIZATION_ORG_ID",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
||||
// column: "ORG_ID",
|
||||
// principalTable: "T_FM_ORGANIZATION",
|
||||
// principalColumn: "ID",
|
||||
// onDelete: ReferentialAction.Restrict);
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_COURSEWEARLIBRARY_COURSEWEARLIBRARY_ID",
|
||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
||||
column: "COURSEWEARLIBRARY_ID",
|
||||
principalTable: "T_SE_COURSEWEARLIBRARY",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
//migrationBuilder.AddForeignKey(
|
||||
// name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_COURSEWEARLIBRARY_COURSEWEARLIBRARY_ID",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
||||
// column: "COURSEWEARLIBRARY_ID",
|
||||
// principalTable: "T_SE_COURSEWEARLIBRARY",
|
||||
// principalColumn: "ID",
|
||||
// onDelete: ReferentialAction.Restrict);
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_TRAIN_NOTIFY_NOTIFY_ID",
|
||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
||||
column: "NOTIFY_ID",
|
||||
principalTable: "T_SE_TRAIN_NOTIFY",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
//migrationBuilder.AddForeignKey(
|
||||
// name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_TRAIN_NOTIFY_NOTIFY_ID",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
||||
// column: "NOTIFY_ID",
|
||||
// principalTable: "T_SE_TRAIN_NOTIFY",
|
||||
// principalColumn: "ID",
|
||||
// onDelete: ReferentialAction.Restrict);
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_T_SE_TRAIN_RECORD_PAPER_T_SE_TRAIN_RECORD_TEXT_TEXT_ID",
|
||||
@ -207,17 +207,17 @@ namespace APT.Data.Migrations.Migrations
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_FM_ORGANIZATION_ORG_ID",
|
||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
|
||||
//migrationBuilder.DropForeignKey(
|
||||
// name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_FM_ORGANIZATION_ORG_ID",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
|
||||
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_COURSEWEARLIBRARY_COURSEWEARLIBRARY_ID",
|
||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
|
||||
//migrationBuilder.DropForeignKey(
|
||||
// name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_COURSEWEARLIBRARY_COURSEWEARLIBRARY_ID",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
|
||||
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_TRAIN_NOTIFY_NOTIFY_ID",
|
||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
|
||||
//migrationBuilder.DropForeignKey(
|
||||
// name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_TRAIN_NOTIFY_NOTIFY_ID",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
|
||||
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_T_SE_TRAIN_RECORD_PAPER_T_SE_TRAIN_RECORD_TEXT_TEXT_ID",
|
||||
@ -230,17 +230,17 @@ namespace APT.Data.Migrations.Migrations
|
||||
name: "IX_T_SE_TRAIN_RECORD_PAPER_TEXT_ID",
|
||||
table: "T_SE_TRAIN_RECORD_PAPER");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_COURSEWEARLIBRARY_ID",
|
||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
|
||||
//migrationBuilder.DropIndex(
|
||||
// name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_COURSEWEARLIBRARY_ID",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_NOTIFY_ID",
|
||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
|
||||
//migrationBuilder.DropIndex(
|
||||
// name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_NOTIFY_ID",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_ORG_ID",
|
||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
|
||||
//migrationBuilder.DropIndex(
|
||||
// name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_ORG_ID",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "EDU_CARD_ID",
|
||||
@ -254,50 +254,50 @@ namespace APT.Data.Migrations.Migrations
|
||||
name: "TEXT_ID",
|
||||
table: "T_SE_TRAIN_RECORD_PAPER");
|
||||
|
||||
migrationBuilder.AlterColumn<Guid>(
|
||||
name: "ORG_ID",
|
||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true,
|
||||
oldClrType: typeof(Guid),
|
||||
oldType: "uniqueidentifier");
|
||||
//migrationBuilder.AlterColumn<Guid>(
|
||||
// name: "ORG_ID",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
||||
// type: "uniqueidentifier",
|
||||
// nullable: true,
|
||||
// oldClrType: typeof(Guid),
|
||||
// oldType: "uniqueidentifier");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "DbConn",
|
||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
||||
type: "nvarchar(max)",
|
||||
nullable: true);
|
||||
//migrationBuilder.AddColumn<string>(
|
||||
// name: "DbConn",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
||||
// type: "nvarchar(max)",
|
||||
// nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "Nav_CourID",
|
||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true);
|
||||
//migrationBuilder.AddColumn<Guid>(
|
||||
// name: "Nav_CourID",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
||||
// type: "uniqueidentifier",
|
||||
// nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "Nav_NotifyID",
|
||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true);
|
||||
//migrationBuilder.AddColumn<Guid>(
|
||||
// name: "Nav_NotifyID",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
||||
// type: "uniqueidentifier",
|
||||
// nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "Nav_OrgID",
|
||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true);
|
||||
//migrationBuilder.AddColumn<Guid>(
|
||||
// name: "Nav_OrgID",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
||||
// type: "uniqueidentifier",
|
||||
// nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "TaskID",
|
||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
||||
type: "uniqueidentifier",
|
||||
nullable: false,
|
||||
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"));
|
||||
//migrationBuilder.AddColumn<Guid>(
|
||||
// name: "TaskID",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
||||
// type: "uniqueidentifier",
|
||||
// nullable: false,
|
||||
// defaultValue: new Guid("00000000-0000-0000-0000-000000000000"));
|
||||
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARYID",
|
||||
table: "T_PF_PARAM",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true);
|
||||
//migrationBuilder.AddColumn<Guid>(
|
||||
// name: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARYID",
|
||||
// table: "T_PF_PARAM",
|
||||
// type: "uniqueidentifier",
|
||||
// nullable: true);
|
||||
|
||||
//migrationBuilder.CreateIndex(
|
||||
// name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_Nav_CourID",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user