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.
420 lines
14 KiB
420 lines
14 KiB
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace TaskManager.EntityFramework.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class z202506100001 : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Id",
|
|
table: "SUPPLIER_PRO_PLANING",
|
|
type: "nvarchar(450)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand9",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
type: "decimal(18,2)",
|
|
nullable: true,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand8",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
type: "decimal(18,2)",
|
|
nullable: true,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand7",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
type: "decimal(18,2)",
|
|
nullable: true,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand6",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
type: "decimal(18,2)",
|
|
nullable: true,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand5",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
type: "decimal(18,2)",
|
|
nullable: true,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand4",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
type: "decimal(18,2)",
|
|
nullable: true,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand3",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
type: "decimal(18,2)",
|
|
nullable: true,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand2",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
type: "decimal(18,2)",
|
|
nullable: true,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand11",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
type: "decimal(18,2)",
|
|
nullable: true,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand10",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
type: "decimal(18,2)",
|
|
nullable: true,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand1",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
type: "decimal(18,2)",
|
|
nullable: true,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "Id",
|
|
table: "SUPPLIER_CON_PO",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "Id",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "nvarchar(max)",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "Id",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: true);
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_SINV_DATA_Id",
|
|
table: "SUPPLIER_SINV_DATA",
|
|
column: "Id",
|
|
unique: true,
|
|
filter: "[Id] IS NOT NULL");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_SA_WEEK_Id",
|
|
table: "SUPPLIER_SA_WEEK",
|
|
column: "Id",
|
|
unique: true,
|
|
filter: "[Id] IS NOT NULL");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_RETURN_Id",
|
|
table: "SUPPLIER_RETURN",
|
|
column: "Id",
|
|
unique: true,
|
|
filter: "[Id] IS NOT NULL");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_TSCHEDUL_Id",
|
|
table: "SUPPLIER_PRO_TSCHEDUL",
|
|
column: "Id",
|
|
unique: true,
|
|
filter: "[Id] IS NOT NULL");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_PLANING_Id",
|
|
table: "SUPPLIER_PRO_PLANING",
|
|
column: "Id",
|
|
unique: true,
|
|
filter: "[Id] IS NOT NULL");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_HSCHEDUL_Id",
|
|
table: "SUPPLIER_PRO_HSCHEDUL",
|
|
column: "Id",
|
|
unique: true,
|
|
filter: "[Id] IS NOT NULL");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_CSCHEDUL_Id",
|
|
table: "SUPPLIER_PRO_CSCHEDUL",
|
|
column: "Id",
|
|
unique: true,
|
|
filter: "[Id] IS NOT NULL");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PO_Id",
|
|
table: "SUPPLIER_PO",
|
|
column: "Id",
|
|
unique: true,
|
|
filter: "[Id] IS NOT NULL");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_MRP_WARNING_Id",
|
|
table: "SUPPLIER_MRP_WARNING",
|
|
column: "Id",
|
|
unique: true,
|
|
filter: "[Id] IS NOT NULL");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_MRP_STATE_Id",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
column: "Id",
|
|
unique: true,
|
|
filter: "[Id] IS NOT NULL");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_MRP_MONTH_Id",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
column: "Id",
|
|
unique: true,
|
|
filter: "[Id] IS NOT NULL");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_MRP_DATE_Id",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
column: "Id",
|
|
unique: true,
|
|
filter: "[Id] IS NOT NULL");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_INV_DATA_Id",
|
|
table: "SUPPLIER_INV_DATA",
|
|
column: "Id",
|
|
unique: true,
|
|
filter: "[Id] IS NOT NULL");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_DEL_STATE_Id",
|
|
table: "SUPPLIER_DEL_STATE",
|
|
column: "Id",
|
|
unique: true,
|
|
filter: "[Id] IS NOT NULL");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_SUPPLIER_SINV_DATA_Id",
|
|
table: "SUPPLIER_SINV_DATA");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_SUPPLIER_SA_WEEK_Id",
|
|
table: "SUPPLIER_SA_WEEK");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_SUPPLIER_RETURN_Id",
|
|
table: "SUPPLIER_RETURN");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_SUPPLIER_PRO_TSCHEDUL_Id",
|
|
table: "SUPPLIER_PRO_TSCHEDUL");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_SUPPLIER_PRO_PLANING_Id",
|
|
table: "SUPPLIER_PRO_PLANING");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_SUPPLIER_PRO_HSCHEDUL_Id",
|
|
table: "SUPPLIER_PRO_HSCHEDUL");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_SUPPLIER_PRO_CSCHEDUL_Id",
|
|
table: "SUPPLIER_PRO_CSCHEDUL");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_SUPPLIER_PO_Id",
|
|
table: "SUPPLIER_PO");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_SUPPLIER_MRP_WARNING_Id",
|
|
table: "SUPPLIER_MRP_WARNING");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_SUPPLIER_MRP_STATE_Id",
|
|
table: "SUPPLIER_MRP_STATE");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_SUPPLIER_MRP_MONTH_Id",
|
|
table: "SUPPLIER_MRP_MONTH");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_SUPPLIER_MRP_DATE_Id",
|
|
table: "SUPPLIER_MRP_DATE");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_SUPPLIER_INV_DATA_Id",
|
|
table: "SUPPLIER_INV_DATA");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_SUPPLIER_DEL_STATE_Id",
|
|
table: "SUPPLIER_DEL_STATE");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Id",
|
|
table: "SUPPLIER_CON_PO");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Id",
|
|
table: "SUPPLIER_CON_MMRP");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Id",
|
|
table: "SUPPLIER_CON_DATE");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Id",
|
|
table: "SUPPLIER_PRO_PLANING",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(450)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand9",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
type: "decimal(18,2)",
|
|
nullable: false,
|
|
defaultValue: 0m,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand8",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
type: "decimal(18,2)",
|
|
nullable: false,
|
|
defaultValue: 0m,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand7",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
type: "decimal(18,2)",
|
|
nullable: false,
|
|
defaultValue: 0m,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand6",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
type: "decimal(18,2)",
|
|
nullable: false,
|
|
defaultValue: 0m,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand5",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
type: "decimal(18,2)",
|
|
nullable: false,
|
|
defaultValue: 0m,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand4",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
type: "decimal(18,2)",
|
|
nullable: false,
|
|
defaultValue: 0m,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand3",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
type: "decimal(18,2)",
|
|
nullable: false,
|
|
defaultValue: 0m,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand2",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
type: "decimal(18,2)",
|
|
nullable: false,
|
|
defaultValue: 0m,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand11",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
type: "decimal(18,2)",
|
|
nullable: false,
|
|
defaultValue: 0m,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand10",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
type: "decimal(18,2)",
|
|
nullable: false,
|
|
defaultValue: 0m,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand1",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
type: "decimal(18,2)",
|
|
nullable: false,
|
|
defaultValue: 0m,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)",
|
|
oldNullable: true);
|
|
}
|
|
}
|
|
}
|
|
|