This commit is contained in:
wyw 2026-03-17 19:11:20 +08:00
parent 5cdff2aaf1
commit cad6fc81d9
2 changed files with 61 additions and 61 deletions

View File

@ -48,12 +48,12 @@ namespace APT.Data.Migrations.Migrations
constraints: table =>
{
table.PrimaryKey("PK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY", x => x.ID);
table.ForeignKey(
name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_FM_ORGANIZATION_Nav_OrgID",
column: x => x.Nav_OrgID,
principalTable: "T_FM_ORGANIZATION",
principalColumn: "ID",
onDelete: ReferentialAction.Restrict);
//table.ForeignKey(
// name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_FM_ORGANIZATION_Nav_OrgID",
// column: x => x.Nav_OrgID,
// principalTable: "T_FM_ORGANIZATION",
// principalColumn: "ID",
// onDelete: ReferentialAction.Restrict);
table.ForeignKey(
name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_COURSEWEARLIBRARY_COURSEWEARLIBRARY_ID",
column: x => x.COURSEWEARLIBRARY_ID,
@ -83,10 +83,10 @@ namespace APT.Data.Migrations.Migrations
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
column: "NOTIFY_ID");
migrationBuilder.CreateIndex(
name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_Nav_OrgID",
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
column: "Nav_OrgID");
//migrationBuilder.CreateIndex(
// name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_Nav_OrgID",
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
// column: "Nav_OrgID");
migrationBuilder.AddForeignKey(
name: "FK_T_PF_PARAM_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARYID",

View File

@ -11,29 +11,29 @@ namespace APT.Data.Migrations.Migrations
name: "FK_T_PF_PARAM_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARYID",
table: "T_PF_PARAM");
migrationBuilder.DropForeignKey(
name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_FM_ORGANIZATION_Nav_OrgID",
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
//migrationBuilder.DropForeignKey(
// name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_FM_ORGANIZATION_Nav_OrgID",
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
migrationBuilder.DropForeignKey(
name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_COURSEWEARLIBRARY_Nav_CourID",
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
//migrationBuilder.DropForeignKey(
// name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_COURSEWEARLIBRARY_Nav_CourID",
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
migrationBuilder.DropForeignKey(
name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_TRAIN_NOTIFY_Nav_NotifyID",
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
//migrationBuilder.DropForeignKey(
// name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_TRAIN_NOTIFY_Nav_NotifyID",
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
migrationBuilder.DropIndex(
name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_Nav_CourID",
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
//migrationBuilder.DropIndex(
// name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_Nav_CourID",
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
migrationBuilder.DropIndex(
name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_Nav_NotifyID",
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
//migrationBuilder.DropIndex(
// name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_Nav_NotifyID",
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
migrationBuilder.DropIndex(
name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_Nav_OrgID",
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
//migrationBuilder.DropIndex(
// name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_Nav_OrgID",
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
migrationBuilder.DropIndex(
name: "IX_T_PF_PARAM_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARYID",
@ -299,20 +299,20 @@ namespace APT.Data.Migrations.Migrations
type: "uniqueidentifier",
nullable: true);
migrationBuilder.CreateIndex(
name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_Nav_CourID",
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
column: "Nav_CourID");
//migrationBuilder.CreateIndex(
// name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_Nav_CourID",
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
// column: "Nav_CourID");
migrationBuilder.CreateIndex(
name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_Nav_NotifyID",
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
column: "Nav_NotifyID");
//migrationBuilder.CreateIndex(
// name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_Nav_NotifyID",
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
// column: "Nav_NotifyID");
migrationBuilder.CreateIndex(
name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_Nav_OrgID",
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
column: "Nav_OrgID");
//migrationBuilder.CreateIndex(
// name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_Nav_OrgID",
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
// column: "Nav_OrgID");
migrationBuilder.CreateIndex(
name: "IX_T_PF_PARAM_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARYID",
@ -327,29 +327,29 @@ namespace APT.Data.Migrations.Migrations
principalColumn: "ID",
onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey(
name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_FM_ORGANIZATION_Nav_OrgID",
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
column: "Nav_OrgID",
principalTable: "T_FM_ORGANIZATION",
principalColumn: "ID",
onDelete: ReferentialAction.Restrict);
//migrationBuilder.AddForeignKey(
// name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_FM_ORGANIZATION_Nav_OrgID",
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
// column: "Nav_OrgID",
// principalTable: "T_FM_ORGANIZATION",
// principalColumn: "ID",
// onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey(
name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_COURSEWEARLIBRARY_Nav_CourID",
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
column: "Nav_CourID",
principalTable: "T_SE_COURSEWEARLIBRARY",
principalColumn: "ID",
onDelete: ReferentialAction.Restrict);
//migrationBuilder.AddForeignKey(
// name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_COURSEWEARLIBRARY_Nav_CourID",
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
// column: "Nav_CourID",
// principalTable: "T_SE_COURSEWEARLIBRARY",
// principalColumn: "ID",
// onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey(
name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_TRAIN_NOTIFY_Nav_NotifyID",
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
column: "Nav_NotifyID",
principalTable: "T_SE_TRAIN_NOTIFY",
principalColumn: "ID",
onDelete: ReferentialAction.Restrict);
//migrationBuilder.AddForeignKey(
// name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_TRAIN_NOTIFY_Nav_NotifyID",
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
// column: "Nav_NotifyID",
// principalTable: "T_SE_TRAIN_NOTIFY",
// principalColumn: "ID",
// onDelete: ReferentialAction.Restrict);
}
}
}