12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- using Microsoft.EntityFrameworkCore.Migrations;
- namespace WCS.Service.Migrations
- {
- public partial class _2022030411 : Migration
- {
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropForeignKey(
- name: "FK_WCS_StatusLog_WCS_TASK_WCS_TASKID",
- table: "WCS_StatusLog");
- migrationBuilder.DropIndex(
- name: "IX_WCS_StatusLog_WCS_TASKID",
- table: "WCS_StatusLog");
- migrationBuilder.AlterColumn<int>(
- name: "WCS_TASKID",
- table: "WCS_StatusLog",
- type: "int",
- nullable: false,
- defaultValue: 0,
- oldClrType: typeof(int),
- oldType: "int",
- oldNullable: true);
- }
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.AlterColumn<int>(
- name: "WCS_TASKID",
- table: "WCS_StatusLog",
- type: "int",
- nullable: true,
- oldClrType: typeof(int),
- oldType: "int");
- migrationBuilder.CreateIndex(
- name: "IX_WCS_StatusLog_WCS_TASKID",
- table: "WCS_StatusLog",
- column: "WCS_TASKID");
- migrationBuilder.AddForeignKey(
- name: "FK_WCS_StatusLog_WCS_TASK_WCS_TASKID",
- table: "WCS_StatusLog",
- column: "WCS_TASKID",
- principalTable: "WCS_TASK",
- principalColumn: "ID",
- onDelete: ReferentialAction.Restrict);
- }
- }
- }
|