This commit is contained in:
wyw 2026-03-17 20:33:25 +08:00
parent 5c1264d4e9
commit 1b34819253

View File

@ -142,15 +142,15 @@ namespace APT.Data.Migrations.Migrations
table: "T_SE_TRAIN_RECORD_PAPER", table: "T_SE_TRAIN_RECORD_PAPER",
column: "TEXT_ID"); column: "TEXT_ID");
migrationBuilder.CreateIndex( //migrationBuilder.CreateIndex(
name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_COURSEWEARLIBRARY_ID", // name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_COURSEWEARLIBRARY_ID",
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY", // table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
column: "COURSEWEARLIBRARY_ID"); // column: "COURSEWEARLIBRARY_ID");
migrationBuilder.CreateIndex( //migrationBuilder.CreateIndex(
name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_NOTIFY_ID", // name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_NOTIFY_ID",
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY", // table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
column: "NOTIFY_ID"); // column: "NOTIFY_ID");
migrationBuilder.CreateIndex( migrationBuilder.CreateIndex(
name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_ORG_ID", name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_ORG_ID",
@ -172,29 +172,29 @@ namespace APT.Data.Migrations.Migrations
table: "T_SE_TRAIN_RECORD_TEXT", table: "T_SE_TRAIN_RECORD_TEXT",
column: "USER_ID"); column: "USER_ID");
migrationBuilder.AddForeignKey( //migrationBuilder.AddForeignKey(
name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_FM_ORGANIZATION_ORG_ID", // name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_FM_ORGANIZATION_ORG_ID",
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY", // table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
column: "ORG_ID", // column: "ORG_ID",
principalTable: "T_FM_ORGANIZATION", // principalTable: "T_FM_ORGANIZATION",
principalColumn: "ID", // principalColumn: "ID",
onDelete: ReferentialAction.Restrict); // onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey( //migrationBuilder.AddForeignKey(
name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_COURSEWEARLIBRARY_COURSEWEARLIBRARY_ID", // name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_COURSEWEARLIBRARY_COURSEWEARLIBRARY_ID",
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY", // table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
column: "COURSEWEARLIBRARY_ID", // column: "COURSEWEARLIBRARY_ID",
principalTable: "T_SE_COURSEWEARLIBRARY", // principalTable: "T_SE_COURSEWEARLIBRARY",
principalColumn: "ID", // principalColumn: "ID",
onDelete: ReferentialAction.Restrict); // onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey( //migrationBuilder.AddForeignKey(
name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_TRAIN_NOTIFY_NOTIFY_ID", // name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_TRAIN_NOTIFY_NOTIFY_ID",
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY", // table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
column: "NOTIFY_ID", // column: "NOTIFY_ID",
principalTable: "T_SE_TRAIN_NOTIFY", // principalTable: "T_SE_TRAIN_NOTIFY",
principalColumn: "ID", // principalColumn: "ID",
onDelete: ReferentialAction.Restrict); // onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey( migrationBuilder.AddForeignKey(
name: "FK_T_SE_TRAIN_RECORD_PAPER_T_SE_TRAIN_RECORD_TEXT_TEXT_ID", 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) protected override void Down(MigrationBuilder migrationBuilder)
{ {
migrationBuilder.DropForeignKey( //migrationBuilder.DropForeignKey(
name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_FM_ORGANIZATION_ORG_ID", // name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_FM_ORGANIZATION_ORG_ID",
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY"); // table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
migrationBuilder.DropForeignKey( //migrationBuilder.DropForeignKey(
name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_COURSEWEARLIBRARY_COURSEWEARLIBRARY_ID", // name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_COURSEWEARLIBRARY_COURSEWEARLIBRARY_ID",
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY"); // table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
migrationBuilder.DropForeignKey( //migrationBuilder.DropForeignKey(
name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_TRAIN_NOTIFY_NOTIFY_ID", // name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_TRAIN_NOTIFY_NOTIFY_ID",
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY"); // table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
migrationBuilder.DropForeignKey( migrationBuilder.DropForeignKey(
name: "FK_T_SE_TRAIN_RECORD_PAPER_T_SE_TRAIN_RECORD_TEXT_TEXT_ID", 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", name: "IX_T_SE_TRAIN_RECORD_PAPER_TEXT_ID",
table: "T_SE_TRAIN_RECORD_PAPER"); table: "T_SE_TRAIN_RECORD_PAPER");
migrationBuilder.DropIndex( //migrationBuilder.DropIndex(
name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_COURSEWEARLIBRARY_ID", // name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_COURSEWEARLIBRARY_ID",
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY"); // table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
migrationBuilder.DropIndex( //migrationBuilder.DropIndex(
name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_NOTIFY_ID", // name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_NOTIFY_ID",
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY"); // table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
migrationBuilder.DropIndex( //migrationBuilder.DropIndex(
name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_ORG_ID", // name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_ORG_ID",
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY"); // table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
migrationBuilder.DropColumn( migrationBuilder.DropColumn(
name: "EDU_CARD_ID", name: "EDU_CARD_ID",
@ -254,50 +254,50 @@ namespace APT.Data.Migrations.Migrations
name: "TEXT_ID", name: "TEXT_ID",
table: "T_SE_TRAIN_RECORD_PAPER"); table: "T_SE_TRAIN_RECORD_PAPER");
migrationBuilder.AlterColumn<Guid>( //migrationBuilder.AlterColumn<Guid>(
name: "ORG_ID", // name: "ORG_ID",
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY", // table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
type: "uniqueidentifier", // type: "uniqueidentifier",
nullable: true, // nullable: true,
oldClrType: typeof(Guid), // oldClrType: typeof(Guid),
oldType: "uniqueidentifier"); // oldType: "uniqueidentifier");
migrationBuilder.AddColumn<string>( //migrationBuilder.AddColumn<string>(
name: "DbConn", // name: "DbConn",
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY", // table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
type: "nvarchar(max)", // type: "nvarchar(max)",
nullable: true); // nullable: true);
migrationBuilder.AddColumn<Guid>( //migrationBuilder.AddColumn<Guid>(
name: "Nav_CourID", // name: "Nav_CourID",
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY", // table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
type: "uniqueidentifier", // type: "uniqueidentifier",
nullable: true); // nullable: true);
migrationBuilder.AddColumn<Guid>( //migrationBuilder.AddColumn<Guid>(
name: "Nav_NotifyID", // name: "Nav_NotifyID",
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY", // table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
type: "uniqueidentifier", // type: "uniqueidentifier",
nullable: true); // nullable: true);
migrationBuilder.AddColumn<Guid>( //migrationBuilder.AddColumn<Guid>(
name: "Nav_OrgID", // name: "Nav_OrgID",
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY", // table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
type: "uniqueidentifier", // type: "uniqueidentifier",
nullable: true); // nullable: true);
migrationBuilder.AddColumn<Guid>( //migrationBuilder.AddColumn<Guid>(
name: "TaskID", // name: "TaskID",
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY", // table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
type: "uniqueidentifier", // type: "uniqueidentifier",
nullable: false, // nullable: false,
defaultValue: new Guid("00000000-0000-0000-0000-000000000000")); // defaultValue: new Guid("00000000-0000-0000-0000-000000000000"));
migrationBuilder.AddColumn<Guid>( //migrationBuilder.AddColumn<Guid>(
name: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARYID", // name: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARYID",
table: "T_PF_PARAM", // table: "T_PF_PARAM",
type: "uniqueidentifier", // type: "uniqueidentifier",
nullable: true); // nullable: true);
//migrationBuilder.CreateIndex( //migrationBuilder.CreateIndex(
// name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_Nav_CourID", // name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_Nav_CourID",