You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1389 lines
47 KiB

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TaskManager.EntityFramework.Migrations
{
/// <inheritdoc />
public partial class z202506190001 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_SINV_DATA_LOGS_Id",
table: "SUPPLIER_SINV_DATA_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_SINV_DATA_LOGS_ReadState",
table: "SUPPLIER_SINV_DATA_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_SINV_DATA_LOGS_RequestDate",
table: "SUPPLIER_SINV_DATA_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_SINV_DATA_LOGS_TaskId",
table: "SUPPLIER_SINV_DATA_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_SINV_DATA_LOGS_WriteState",
table: "SUPPLIER_SINV_DATA_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_SINV_DATA_Id",
table: "SUPPLIER_SINV_DATA");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_SINV_DATA_ReadState",
table: "SUPPLIER_SINV_DATA");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_SINV_DATA_TaskId",
table: "SUPPLIER_SINV_DATA");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_SINV_DATA_WriteState",
table: "SUPPLIER_SINV_DATA");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_PO_LOGS_Id",
table: "SUPPLIER_CON_PO_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_PO_LOGS_ReadState",
table: "SUPPLIER_CON_PO_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_PO_LOGS_TaskId",
table: "SUPPLIER_CON_PO_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_PO_LOGS_WriteState",
table: "SUPPLIER_CON_PO_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_PO_Id",
table: "SUPPLIER_CON_PO");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_PO_ReadState",
table: "SUPPLIER_CON_PO");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_PO_TaskId",
table: "SUPPLIER_CON_PO");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_PO_WriteState",
table: "SUPPLIER_CON_PO");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_MMRP_LOGS_Id",
table: "SUPPLIER_CON_MMRP_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_MMRP_LOGS_ReadState",
table: "SUPPLIER_CON_MMRP_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_MMRP_LOGS_TaskId",
table: "SUPPLIER_CON_MMRP_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_MMRP_LOGS_WriteState",
table: "SUPPLIER_CON_MMRP_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_MMRP_Id",
table: "SUPPLIER_CON_MMRP");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_MMRP_ReadState",
table: "SUPPLIER_CON_MMRP");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_MMRP_TaskId",
table: "SUPPLIER_CON_MMRP");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_MMRP_WriteState",
table: "SUPPLIER_CON_MMRP");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_DATE_LOGS_Id",
table: "SUPPLIER_CON_DATE_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_DATE_LOGS_ReadState",
table: "SUPPLIER_CON_DATE_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_DATE_LOGS_TaskId",
table: "SUPPLIER_CON_DATE_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_DATE_LOGS_WriteState",
table: "SUPPLIER_CON_DATE_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_DATE_Id",
table: "SUPPLIER_CON_DATE");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_DATE_ReadState",
table: "SUPPLIER_CON_DATE");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_DATE_TaskId",
table: "SUPPLIER_CON_DATE");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_DATE_WriteState",
table: "SUPPLIER_CON_DATE");
migrationBuilder.AlterColumn<string>(
name: "TaskName",
table: "TaskLogs",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(30)",
oldMaxLength: 30,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Module",
table: "TaskLogs",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(30)",
oldMaxLength: 30,
oldNullable: true);
migrationBuilder.AddColumn<string>(
name: "Id",
table: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS",
type: "nvarchar(50)",
maxLength: 50,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "RequestDate",
table: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS",
type: "nvarchar(30)",
maxLength: 30,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Id",
table: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD",
type: "nvarchar(50)",
maxLength: 50,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "RequestDate",
table: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD",
type: "nvarchar(30)",
maxLength: 30,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Id",
table: "SUPPLIER_PRO_SCHEDULING_LOGS",
type: "nvarchar(50)",
maxLength: 50,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "RequestDate",
table: "SUPPLIER_PRO_SCHEDULING_LOGS",
type: "nvarchar(30)",
maxLength: 30,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Id",
table: "SUPPLIER_PRO_SCHEDULING",
type: "nvarchar(50)",
maxLength: 50,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "RequestDate",
table: "SUPPLIER_PRO_SCHEDULING",
type: "nvarchar(30)",
maxLength: 30,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Id",
table: "SUPPLIER_PRO_PROCESS_LOGS",
type: "nvarchar(50)",
maxLength: 50,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "RequestDate",
table: "SUPPLIER_PRO_PROCESS_LOGS",
type: "nvarchar(30)",
maxLength: 30,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Id",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS",
type: "nvarchar(50)",
maxLength: 50,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "RequestDate",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS",
type: "nvarchar(30)",
maxLength: 30,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Id",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT",
type: "nvarchar(50)",
maxLength: 50,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "RequestDate",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT",
type: "nvarchar(30)",
maxLength: 30,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Id",
table: "SUPPLIER_PRO_PROCESS",
type: "nvarchar(50)",
maxLength: 50,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "RequestDate",
table: "SUPPLIER_PRO_PROCESS",
type: "nvarchar(30)",
maxLength: 30,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Id",
table: "SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS",
type: "nvarchar(50)",
maxLength: 50,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "RequestDate",
table: "SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS",
type: "nvarchar(30)",
maxLength: 30,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Id",
table: "SUPPLIER_PRO_OEE_TIME_DETAILS",
type: "nvarchar(50)",
maxLength: 50,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "RequestDate",
table: "SUPPLIER_PRO_OEE_TIME_DETAILS",
type: "nvarchar(30)",
maxLength: 30,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Id",
table: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS",
type: "nvarchar(50)",
maxLength: 50,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "RequestDate",
table: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS",
type: "nvarchar(30)",
maxLength: 30,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Id",
table: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE",
type: "nvarchar(50)",
maxLength: 50,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "RequestDate",
table: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE",
type: "nvarchar(30)",
maxLength: 30,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Id",
table: "SUPPLIER_PRO_MATERIAL_STOCK_LOGS",
type: "nvarchar(50)",
maxLength: 50,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "RequestDate",
table: "SUPPLIER_PRO_MATERIAL_STOCK_LOGS",
type: "nvarchar(30)",
maxLength: 30,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Id",
table: "SUPPLIER_PRO_MATERIAL_STOCK",
type: "nvarchar(50)",
maxLength: 50,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "RequestDate",
table: "SUPPLIER_PRO_MATERIAL_STOCK",
type: "nvarchar(30)",
maxLength: 30,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Id",
table: "SUPPLIER_PRO_MATERIAL_DATA_LOGS",
type: "nvarchar(50)",
maxLength: 50,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "RequestDate",
table: "SUPPLIER_PRO_MATERIAL_DATA_LOGS",
type: "nvarchar(30)",
maxLength: 30,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Id",
table: "SUPPLIER_PRO_MATERIAL_DATA",
type: "nvarchar(50)",
maxLength: 50,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "RequestDate",
table: "SUPPLIER_PRO_MATERIAL_DATA",
type: "nvarchar(30)",
maxLength: 30,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Id",
table: "SUPPLIER_PRO_FLAW_LOGS",
type: "nvarchar(50)",
maxLength: 50,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "RequestDate",
table: "SUPPLIER_PRO_FLAW_LOGS",
type: "nvarchar(30)",
maxLength: 30,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Id",
table: "SUPPLIER_PRO_FLAW",
type: "nvarchar(50)",
maxLength: 50,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "RequestDate",
table: "SUPPLIER_PRO_FLAW",
type: "nvarchar(30)",
maxLength: 30,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Id",
table: "SUPPLIER_PRO_FIRST_PASSYIELD_LOGS",
type: "nvarchar(50)",
maxLength: 50,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "RequestDate",
table: "SUPPLIER_PRO_FIRST_PASSYIELD_LOGS",
type: "nvarchar(30)",
maxLength: 30,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Id",
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
type: "nvarchar(50)",
maxLength: 50,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "RequestDate",
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
type: "nvarchar(30)",
maxLength: 30,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Id",
table: "SUPPLIER_PRO_ENVIRONMENT_LOGS",
type: "nvarchar(50)",
maxLength: 50,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "RequestDate",
table: "SUPPLIER_PRO_ENVIRONMENT_LOGS",
type: "nvarchar(30)",
maxLength: 30,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Id",
table: "SUPPLIER_PRO_ENVIRONMENT",
type: "nvarchar(50)",
maxLength: 50,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "RequestDate",
table: "SUPPLIER_PRO_ENVIRONMENT",
type: "nvarchar(30)",
maxLength: 30,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Id",
table: "SUPPLIER_PRO_DATA_LOGS",
type: "nvarchar(50)",
maxLength: 50,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "RequestDate",
table: "SUPPLIER_PRO_DATA_LOGS",
type: "nvarchar(30)",
maxLength: 30,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Id",
table: "SUPPLIER_PRO_DATA",
type: "nvarchar(50)",
maxLength: 50,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "RequestDate",
table: "SUPPLIER_PRO_DATA",
type: "nvarchar(30)",
maxLength: 30,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Id",
table: "SUPPLIER_PRO_CPS_LOGS",
type: "nvarchar(50)",
maxLength: 50,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "RequestDate",
table: "SUPPLIER_PRO_CPS_LOGS",
type: "nvarchar(30)",
maxLength: 30,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Id",
table: "SUPPLIER_PRO_CPS",
type: "nvarchar(50)",
maxLength: 50,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "RequestDate",
table: "SUPPLIER_PRO_CPS",
type: "nvarchar(30)",
maxLength: 30,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Id",
table: "SUPPLIER_PRO_ATTACHMENT_DATA_LOGS",
type: "nvarchar(50)",
maxLength: 50,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "RequestDate",
table: "SUPPLIER_PRO_ATTACHMENT_DATA_LOGS",
type: "nvarchar(30)",
maxLength: 30,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Id",
table: "SUPPLIER_PRO_ATTACHMENT_DATA",
type: "nvarchar(50)",
maxLength: 50,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "RequestDate",
table: "SUPPLIER_PRO_ATTACHMENT_DATA",
type: "nvarchar(30)",
maxLength: 30,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Id",
table: "SUPPLIER_INFO_LOGS",
type: "nvarchar(50)",
maxLength: 50,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "RequestDate",
table: "SUPPLIER_INFO_LOGS",
type: "nvarchar(30)",
maxLength: 30,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Id",
table: "SUPPLIER_INFO",
type: "nvarchar(50)",
maxLength: 50,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "RequestDate",
table: "SUPPLIER_INFO",
type: "nvarchar(30)",
maxLength: 30,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Id",
table: "SUPPLIER_EMPLOYEE_LOGS",
type: "nvarchar(50)",
maxLength: 50,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "RequestDate",
table: "SUPPLIER_EMPLOYEE_LOGS",
type: "nvarchar(30)",
maxLength: 30,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Id",
table: "SUPPLIER_EMPLOYEE",
type: "nvarchar(50)",
maxLength: 50,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "RequestDate",
table: "SUPPLIER_EMPLOYEE",
type: "nvarchar(30)",
maxLength: 30,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "RequestDate",
table: "SUPPLIER_CON_PO_LOGS",
type: "nvarchar(30)",
maxLength: 30,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "RequestDate",
table: "SUPPLIER_CON_PO",
type: "nvarchar(30)",
maxLength: 30,
nullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_CON_MMRP_LOGS",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(450)",
oldNullable: true);
migrationBuilder.AddColumn<string>(
name: "RequestDate",
table: "SUPPLIER_CON_MMRP_LOGS",
type: "nvarchar(30)",
maxLength: 30,
nullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_CON_MMRP",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(450)",
oldNullable: true);
migrationBuilder.AddColumn<string>(
name: "RequestDate",
table: "SUPPLIER_CON_MMRP",
type: "nvarchar(30)",
maxLength: 30,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "RequestDate",
table: "SUPPLIER_CON_DATE_LOGS",
type: "nvarchar(30)",
maxLength: 30,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "RequestDate",
table: "SUPPLIER_CON_DATE",
type: "nvarchar(30)",
maxLength: 30,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Id",
table: "SUPPLIER_BOM_LOGS",
type: "nvarchar(50)",
maxLength: 50,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "RequestDate",
table: "SUPPLIER_BOM_LOGS",
type: "nvarchar(30)",
maxLength: 30,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Id",
table: "SUPPLIER_BOM",
type: "nvarchar(50)",
maxLength: 50,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "RequestDate",
table: "SUPPLIER_BOM",
type: "nvarchar(30)",
maxLength: 30,
nullable: true);
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_STATION_FIRST_PASSYIELD_RequestDate",
table: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD",
column: "RequestDate");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_SCHEDULING_RequestDate",
table: "SUPPLIER_PRO_SCHEDULING",
column: "RequestDate");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_PROCESS_EQUIPMENT_RequestDate",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT",
column: "RequestDate");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_PROCESS_RequestDate",
table: "SUPPLIER_PRO_PROCESS",
column: "RequestDate");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_OEE_TIME_DETAILS_RequestDate",
table: "SUPPLIER_PRO_OEE_TIME_DETAILS",
column: "RequestDate");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_RequestDate",
table: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE",
column: "RequestDate");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_MATERIAL_STOCK_RequestDate",
table: "SUPPLIER_PRO_MATERIAL_STOCK",
column: "RequestDate");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_MATERIAL_DATA_RequestDate",
table: "SUPPLIER_PRO_MATERIAL_DATA",
column: "RequestDate");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_FLAW_RequestDate",
table: "SUPPLIER_PRO_FLAW",
column: "RequestDate");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_FIRST_PASSYIELD_RequestDate",
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
column: "RequestDate");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_ENVIRONMENT_RequestDate",
table: "SUPPLIER_PRO_ENVIRONMENT",
column: "RequestDate");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_DATA_RequestDate",
table: "SUPPLIER_PRO_DATA",
column: "RequestDate");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_CPS_RequestDate",
table: "SUPPLIER_PRO_CPS",
column: "RequestDate");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_ATTACHMENT_DATA_RequestDate",
table: "SUPPLIER_PRO_ATTACHMENT_DATA",
column: "RequestDate");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_INFO_RequestDate",
table: "SUPPLIER_INFO",
column: "RequestDate");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_EMPLOYEE_RequestDate",
table: "SUPPLIER_EMPLOYEE",
column: "RequestDate");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_PO_RequestDate",
table: "SUPPLIER_CON_PO",
column: "RequestDate");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_MMRP_RequestDate",
table: "SUPPLIER_CON_MMRP",
column: "RequestDate");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_DATE_RequestDate",
table: "SUPPLIER_CON_DATE",
column: "RequestDate");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_BOM_RequestDate",
table: "SUPPLIER_BOM",
column: "RequestDate");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_STATION_FIRST_PASSYIELD_RequestDate",
table: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_SCHEDULING_RequestDate",
table: "SUPPLIER_PRO_SCHEDULING");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_PROCESS_EQUIPMENT_RequestDate",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_PROCESS_RequestDate",
table: "SUPPLIER_PRO_PROCESS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_OEE_TIME_DETAILS_RequestDate",
table: "SUPPLIER_PRO_OEE_TIME_DETAILS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_RequestDate",
table: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_MATERIAL_STOCK_RequestDate",
table: "SUPPLIER_PRO_MATERIAL_STOCK");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_MATERIAL_DATA_RequestDate",
table: "SUPPLIER_PRO_MATERIAL_DATA");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_FLAW_RequestDate",
table: "SUPPLIER_PRO_FLAW");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_FIRST_PASSYIELD_RequestDate",
table: "SUPPLIER_PRO_FIRST_PASSYIELD");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_ENVIRONMENT_RequestDate",
table: "SUPPLIER_PRO_ENVIRONMENT");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_DATA_RequestDate",
table: "SUPPLIER_PRO_DATA");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_CPS_RequestDate",
table: "SUPPLIER_PRO_CPS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_ATTACHMENT_DATA_RequestDate",
table: "SUPPLIER_PRO_ATTACHMENT_DATA");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_INFO_RequestDate",
table: "SUPPLIER_INFO");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_EMPLOYEE_RequestDate",
table: "SUPPLIER_EMPLOYEE");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_PO_RequestDate",
table: "SUPPLIER_CON_PO");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_MMRP_RequestDate",
table: "SUPPLIER_CON_MMRP");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_DATE_RequestDate",
table: "SUPPLIER_CON_DATE");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_BOM_RequestDate",
table: "SUPPLIER_BOM");
migrationBuilder.DropColumn(
name: "Id",
table: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS");
migrationBuilder.DropColumn(
name: "RequestDate",
table: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS");
migrationBuilder.DropColumn(
name: "Id",
table: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD");
migrationBuilder.DropColumn(
name: "RequestDate",
table: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD");
migrationBuilder.DropColumn(
name: "Id",
table: "SUPPLIER_PRO_SCHEDULING_LOGS");
migrationBuilder.DropColumn(
name: "RequestDate",
table: "SUPPLIER_PRO_SCHEDULING_LOGS");
migrationBuilder.DropColumn(
name: "Id",
table: "SUPPLIER_PRO_SCHEDULING");
migrationBuilder.DropColumn(
name: "RequestDate",
table: "SUPPLIER_PRO_SCHEDULING");
migrationBuilder.DropColumn(
name: "Id",
table: "SUPPLIER_PRO_PROCESS_LOGS");
migrationBuilder.DropColumn(
name: "RequestDate",
table: "SUPPLIER_PRO_PROCESS_LOGS");
migrationBuilder.DropColumn(
name: "Id",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS");
migrationBuilder.DropColumn(
name: "RequestDate",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS");
migrationBuilder.DropColumn(
name: "Id",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT");
migrationBuilder.DropColumn(
name: "RequestDate",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT");
migrationBuilder.DropColumn(
name: "Id",
table: "SUPPLIER_PRO_PROCESS");
migrationBuilder.DropColumn(
name: "RequestDate",
table: "SUPPLIER_PRO_PROCESS");
migrationBuilder.DropColumn(
name: "Id",
table: "SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS");
migrationBuilder.DropColumn(
name: "RequestDate",
table: "SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS");
migrationBuilder.DropColumn(
name: "Id",
table: "SUPPLIER_PRO_OEE_TIME_DETAILS");
migrationBuilder.DropColumn(
name: "RequestDate",
table: "SUPPLIER_PRO_OEE_TIME_DETAILS");
migrationBuilder.DropColumn(
name: "Id",
table: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS");
migrationBuilder.DropColumn(
name: "RequestDate",
table: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS");
migrationBuilder.DropColumn(
name: "Id",
table: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE");
migrationBuilder.DropColumn(
name: "RequestDate",
table: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE");
migrationBuilder.DropColumn(
name: "Id",
table: "SUPPLIER_PRO_MATERIAL_STOCK_LOGS");
migrationBuilder.DropColumn(
name: "RequestDate",
table: "SUPPLIER_PRO_MATERIAL_STOCK_LOGS");
migrationBuilder.DropColumn(
name: "Id",
table: "SUPPLIER_PRO_MATERIAL_STOCK");
migrationBuilder.DropColumn(
name: "RequestDate",
table: "SUPPLIER_PRO_MATERIAL_STOCK");
migrationBuilder.DropColumn(
name: "Id",
table: "SUPPLIER_PRO_MATERIAL_DATA_LOGS");
migrationBuilder.DropColumn(
name: "RequestDate",
table: "SUPPLIER_PRO_MATERIAL_DATA_LOGS");
migrationBuilder.DropColumn(
name: "Id",
table: "SUPPLIER_PRO_MATERIAL_DATA");
migrationBuilder.DropColumn(
name: "RequestDate",
table: "SUPPLIER_PRO_MATERIAL_DATA");
migrationBuilder.DropColumn(
name: "Id",
table: "SUPPLIER_PRO_FLAW_LOGS");
migrationBuilder.DropColumn(
name: "RequestDate",
table: "SUPPLIER_PRO_FLAW_LOGS");
migrationBuilder.DropColumn(
name: "Id",
table: "SUPPLIER_PRO_FLAW");
migrationBuilder.DropColumn(
name: "RequestDate",
table: "SUPPLIER_PRO_FLAW");
migrationBuilder.DropColumn(
name: "Id",
table: "SUPPLIER_PRO_FIRST_PASSYIELD_LOGS");
migrationBuilder.DropColumn(
name: "RequestDate",
table: "SUPPLIER_PRO_FIRST_PASSYIELD_LOGS");
migrationBuilder.DropColumn(
name: "Id",
table: "SUPPLIER_PRO_FIRST_PASSYIELD");
migrationBuilder.DropColumn(
name: "RequestDate",
table: "SUPPLIER_PRO_FIRST_PASSYIELD");
migrationBuilder.DropColumn(
name: "Id",
table: "SUPPLIER_PRO_ENVIRONMENT_LOGS");
migrationBuilder.DropColumn(
name: "RequestDate",
table: "SUPPLIER_PRO_ENVIRONMENT_LOGS");
migrationBuilder.DropColumn(
name: "Id",
table: "SUPPLIER_PRO_ENVIRONMENT");
migrationBuilder.DropColumn(
name: "RequestDate",
table: "SUPPLIER_PRO_ENVIRONMENT");
migrationBuilder.DropColumn(
name: "Id",
table: "SUPPLIER_PRO_DATA_LOGS");
migrationBuilder.DropColumn(
name: "RequestDate",
table: "SUPPLIER_PRO_DATA_LOGS");
migrationBuilder.DropColumn(
name: "Id",
table: "SUPPLIER_PRO_DATA");
migrationBuilder.DropColumn(
name: "RequestDate",
table: "SUPPLIER_PRO_DATA");
migrationBuilder.DropColumn(
name: "Id",
table: "SUPPLIER_PRO_CPS_LOGS");
migrationBuilder.DropColumn(
name: "RequestDate",
table: "SUPPLIER_PRO_CPS_LOGS");
migrationBuilder.DropColumn(
name: "Id",
table: "SUPPLIER_PRO_CPS");
migrationBuilder.DropColumn(
name: "RequestDate",
table: "SUPPLIER_PRO_CPS");
migrationBuilder.DropColumn(
name: "Id",
table: "SUPPLIER_PRO_ATTACHMENT_DATA_LOGS");
migrationBuilder.DropColumn(
name: "RequestDate",
table: "SUPPLIER_PRO_ATTACHMENT_DATA_LOGS");
migrationBuilder.DropColumn(
name: "Id",
table: "SUPPLIER_PRO_ATTACHMENT_DATA");
migrationBuilder.DropColumn(
name: "RequestDate",
table: "SUPPLIER_PRO_ATTACHMENT_DATA");
migrationBuilder.DropColumn(
name: "Id",
table: "SUPPLIER_INFO_LOGS");
migrationBuilder.DropColumn(
name: "RequestDate",
table: "SUPPLIER_INFO_LOGS");
migrationBuilder.DropColumn(
name: "Id",
table: "SUPPLIER_INFO");
migrationBuilder.DropColumn(
name: "RequestDate",
table: "SUPPLIER_INFO");
migrationBuilder.DropColumn(
name: "Id",
table: "SUPPLIER_EMPLOYEE_LOGS");
migrationBuilder.DropColumn(
name: "RequestDate",
table: "SUPPLIER_EMPLOYEE_LOGS");
migrationBuilder.DropColumn(
name: "Id",
table: "SUPPLIER_EMPLOYEE");
migrationBuilder.DropColumn(
name: "RequestDate",
table: "SUPPLIER_EMPLOYEE");
migrationBuilder.DropColumn(
name: "RequestDate",
table: "SUPPLIER_CON_PO_LOGS");
migrationBuilder.DropColumn(
name: "RequestDate",
table: "SUPPLIER_CON_PO");
migrationBuilder.DropColumn(
name: "RequestDate",
table: "SUPPLIER_CON_MMRP_LOGS");
migrationBuilder.DropColumn(
name: "RequestDate",
table: "SUPPLIER_CON_MMRP");
migrationBuilder.DropColumn(
name: "RequestDate",
table: "SUPPLIER_CON_DATE_LOGS");
migrationBuilder.DropColumn(
name: "RequestDate",
table: "SUPPLIER_CON_DATE");
migrationBuilder.DropColumn(
name: "Id",
table: "SUPPLIER_BOM_LOGS");
migrationBuilder.DropColumn(
name: "RequestDate",
table: "SUPPLIER_BOM_LOGS");
migrationBuilder.DropColumn(
name: "Id",
table: "SUPPLIER_BOM");
migrationBuilder.DropColumn(
name: "RequestDate",
table: "SUPPLIER_BOM");
migrationBuilder.AlterColumn<string>(
name: "TaskName",
table: "TaskLogs",
type: "nvarchar(30)",
maxLength: 30,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Module",
table: "TaskLogs",
type: "nvarchar(30)",
maxLength: 30,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_CON_MMRP_LOGS",
type: "nvarchar(450)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_CON_MMRP",
type: "nvarchar(450)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_SINV_DATA_LOGS_Id",
table: "SUPPLIER_SINV_DATA_LOGS",
column: "Id");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_SINV_DATA_LOGS_ReadState",
table: "SUPPLIER_SINV_DATA_LOGS",
column: "ReadState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_SINV_DATA_LOGS_RequestDate",
table: "SUPPLIER_SINV_DATA_LOGS",
column: "RequestDate");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_SINV_DATA_LOGS_TaskId",
table: "SUPPLIER_SINV_DATA_LOGS",
column: "TaskId");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_SINV_DATA_LOGS_WriteState",
table: "SUPPLIER_SINV_DATA_LOGS",
column: "WriteState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_SINV_DATA_Id",
table: "SUPPLIER_SINV_DATA",
column: "Id");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_SINV_DATA_ReadState",
table: "SUPPLIER_SINV_DATA",
column: "ReadState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_SINV_DATA_TaskId",
table: "SUPPLIER_SINV_DATA",
column: "TaskId");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_SINV_DATA_WriteState",
table: "SUPPLIER_SINV_DATA",
column: "WriteState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_PO_LOGS_Id",
table: "SUPPLIER_CON_PO_LOGS",
column: "Id");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_PO_LOGS_ReadState",
table: "SUPPLIER_CON_PO_LOGS",
column: "ReadState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_PO_LOGS_TaskId",
table: "SUPPLIER_CON_PO_LOGS",
column: "TaskId");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_PO_LOGS_WriteState",
table: "SUPPLIER_CON_PO_LOGS",
column: "WriteState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_PO_Id",
table: "SUPPLIER_CON_PO",
column: "Id");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_PO_ReadState",
table: "SUPPLIER_CON_PO",
column: "ReadState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_PO_TaskId",
table: "SUPPLIER_CON_PO",
column: "TaskId");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_PO_WriteState",
table: "SUPPLIER_CON_PO",
column: "WriteState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_MMRP_LOGS_Id",
table: "SUPPLIER_CON_MMRP_LOGS",
column: "Id");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_MMRP_LOGS_ReadState",
table: "SUPPLIER_CON_MMRP_LOGS",
column: "ReadState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_MMRP_LOGS_TaskId",
table: "SUPPLIER_CON_MMRP_LOGS",
column: "TaskId");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_MMRP_LOGS_WriteState",
table: "SUPPLIER_CON_MMRP_LOGS",
column: "WriteState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_MMRP_Id",
table: "SUPPLIER_CON_MMRP",
column: "Id");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_MMRP_ReadState",
table: "SUPPLIER_CON_MMRP",
column: "ReadState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_MMRP_TaskId",
table: "SUPPLIER_CON_MMRP",
column: "TaskId");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_MMRP_WriteState",
table: "SUPPLIER_CON_MMRP",
column: "WriteState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_DATE_LOGS_Id",
table: "SUPPLIER_CON_DATE_LOGS",
column: "Id");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_DATE_LOGS_ReadState",
table: "SUPPLIER_CON_DATE_LOGS",
column: "ReadState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_DATE_LOGS_TaskId",
table: "SUPPLIER_CON_DATE_LOGS",
column: "TaskId");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_DATE_LOGS_WriteState",
table: "SUPPLIER_CON_DATE_LOGS",
column: "WriteState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_DATE_Id",
table: "SUPPLIER_CON_DATE",
column: "Id");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_DATE_ReadState",
table: "SUPPLIER_CON_DATE",
column: "ReadState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_DATE_TaskId",
table: "SUPPLIER_CON_DATE",
column: "TaskId");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_DATE_WriteState",
table: "SUPPLIER_CON_DATE",
column: "WriteState");
}
}
}