mh_jy_safe/APT.Data.Migrations/Migrations/20260121093039_wyw2026012101.cs

123 lines
6.2 KiB
C#
Raw Normal View History

2026-02-02 16:19:20 +08:00
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace APT.Data.Migrations.Migrations
{
public partial class wyw2026012101 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "EXAMETYPE",
table: "T_SE_TRAIN_NOTIFY",
type: "int",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<Guid>(
name: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARYID",
table: "T_PF_PARAM",
type: "uniqueidentifier",
nullable: true);
2026-03-17 20:01:03 +08:00
//migrationBuilder.CreateTable(
// name: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
// columns: table => new
// {
// ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
// NOTIFY_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
// //Nav_NotifyID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
// COURSEWEARLIBRARY_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
// //Nav_CourID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
// NUM = table.Column<int>(type: "int", nullable: false),
// IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
// ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
// 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),
// DbConn = table.Column<string>(type: "nvarchar(max)", nullable: true),
// //Nav_OrgID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
// TaskID = table.Column<Guid>(type: "uniqueidentifier", nullable: false)
// },
// 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_SE_COURSEWEARLIBRARY_COURSEWEARLIBRARY_ID",
// column: x => x.COURSEWEARLIBRARY_ID,
// principalTable: "T_SE_COURSEWEARLIBRARY",
// principalColumn: "ID",
// onDelete: ReferentialAction.Restrict);
// table.ForeignKey(
// name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_TRAIN_NOTIFY_NOTIFY_ID",
// column: x => x.NOTIFY_ID,
// principalTable: "T_SE_TRAIN_NOTIFY",
// principalColumn: "ID",
// onDelete: ReferentialAction.Restrict);
// });
2026-02-02 16:19:20 +08:00
2026-03-17 20:01:03 +08:00
//migrationBuilder.CreateIndex(
// name: "IX_T_PF_PARAM_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARYID",
// table: "T_PF_PARAM",
// column: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARYID");
2026-02-02 16:19:20 +08:00
2026-03-17 20:01:03 +08:00
//migrationBuilder.CreateIndex(
// name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_COURSEWEARLIBRARY_ID",
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
// column: "COURSEWEARLIBRARY_ID");
2026-02-02 16:19:20 +08:00
2026-03-17 19:11:20 +08:00
//migrationBuilder.CreateIndex(
2026-03-17 20:01:03 +08:00
// name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_NOTIFY_ID",
2026-03-17 19:11:20 +08:00
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
2026-03-17 20:01:03 +08:00
// column: "NOTIFY_ID");
2026-02-02 16:19:20 +08:00
2026-03-17 20:01:03 +08:00
////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",
// table: "T_PF_PARAM",
// column: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARYID",
// principalTable: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
// principalColumn: "ID",
// onDelete: ReferentialAction.Restrict);
2026-02-02 16:19:20 +08:00
}
protected override void Down(MigrationBuilder migrationBuilder)
{
2026-03-17 20:01:03 +08:00
//migrationBuilder.DropForeignKey(
// name: "FK_T_PF_PARAM_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARYID",
// table: "T_PF_PARAM");
2026-02-02 16:19:20 +08:00
2026-03-17 20:01:03 +08:00
//migrationBuilder.DropTable(
// name: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
2026-02-02 16:19:20 +08:00
2026-03-17 20:01:03 +08:00
//migrationBuilder.DropIndex(
// name: "IX_T_PF_PARAM_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARYID",
// table: "T_PF_PARAM");
2026-02-02 16:19:20 +08:00
migrationBuilder.DropColumn(
name: "EXAMETYPE",
table: "T_SE_TRAIN_NOTIFY");
2026-03-17 20:01:03 +08:00
//migrationBuilder.DropColumn(
// name: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARYID",
// table: "T_PF_PARAM");
2026-02-02 16:19:20 +08:00
}
}
}