From 1b348192538f4ec65bb245979443bdb99b2b999c Mon Sep 17 00:00:00 2001 From: wyw <571921741@qq.com> Date: Tue, 17 Mar 2026 20:33:25 +0800 Subject: [PATCH] 213 --- .../20260202064225_wyw2026020201.cs | 170 +++++++++--------- 1 file changed, 85 insertions(+), 85 deletions(-) diff --git a/APT.Data.Migrations/Migrations/20260202064225_wyw2026020201.cs b/APT.Data.Migrations/Migrations/20260202064225_wyw2026020201.cs index df92dc2..9c41ae2 100644 --- a/APT.Data.Migrations/Migrations/20260202064225_wyw2026020201.cs +++ b/APT.Data.Migrations/Migrations/20260202064225_wyw2026020201.cs @@ -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( - name: "ORG_ID", - table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY", - type: "uniqueidentifier", - nullable: true, - oldClrType: typeof(Guid), - oldType: "uniqueidentifier"); + //migrationBuilder.AlterColumn( + // name: "ORG_ID", + // table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY", + // type: "uniqueidentifier", + // nullable: true, + // oldClrType: typeof(Guid), + // oldType: "uniqueidentifier"); - migrationBuilder.AddColumn( - name: "DbConn", - table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY", - type: "nvarchar(max)", - nullable: true); + //migrationBuilder.AddColumn( + // name: "DbConn", + // table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY", + // type: "nvarchar(max)", + // nullable: true); - migrationBuilder.AddColumn( - name: "Nav_CourID", - table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY", - type: "uniqueidentifier", - nullable: true); + //migrationBuilder.AddColumn( + // name: "Nav_CourID", + // table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY", + // type: "uniqueidentifier", + // nullable: true); - migrationBuilder.AddColumn( - name: "Nav_NotifyID", - table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY", - type: "uniqueidentifier", - nullable: true); + //migrationBuilder.AddColumn( + // name: "Nav_NotifyID", + // table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY", + // type: "uniqueidentifier", + // nullable: true); - migrationBuilder.AddColumn( - name: "Nav_OrgID", - table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY", - type: "uniqueidentifier", - nullable: true); + //migrationBuilder.AddColumn( + // name: "Nav_OrgID", + // table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY", + // type: "uniqueidentifier", + // nullable: true); - migrationBuilder.AddColumn( - name: "TaskID", - table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY", - type: "uniqueidentifier", - nullable: false, - defaultValue: new Guid("00000000-0000-0000-0000-000000000000")); + //migrationBuilder.AddColumn( + // name: "TaskID", + // table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY", + // type: "uniqueidentifier", + // nullable: false, + // defaultValue: new Guid("00000000-0000-0000-0000-000000000000")); - migrationBuilder.AddColumn( - name: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARYID", - table: "T_PF_PARAM", - type: "uniqueidentifier", - nullable: true); + //migrationBuilder.AddColumn( + // 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",