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.
530 lines
18 KiB
530 lines
18 KiB
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace TaskManager.EntityFramework.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class _2025052902 : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_SINV_DATA",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_SA_WEEK",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_RETURN",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_PRO_TSCHEDUL",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD",
|
|
type: "NVarchar(500)",
|
|
maxLength: 500,
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "NVarchar(500)",
|
|
oldMaxLength: 500);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_PRO_SCHEDULING",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_PRO_PLANING",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_PRO_HSCHEDUL",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "WriteState",
|
|
table: "SUPPLIER_PRO_FLAW",
|
|
type: "bit",
|
|
nullable: false,
|
|
defaultValue: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_PRO_FLAW",
|
|
type: "NVarchar(500)",
|
|
maxLength: 500,
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "NVarchar(500)",
|
|
oldMaxLength: 500);
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "ReadState",
|
|
table: "SUPPLIER_PRO_FLAW",
|
|
type: "bit",
|
|
nullable: false,
|
|
defaultValue: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_PRO_CSCHEDUL",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_PO",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_INV_DATA",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_INFO",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_EMPLOYEE",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_DEL_STATE",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_CON_PO",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_BOM",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_SINV_DATA",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_SA_WEEK",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_RETURN",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_PRO_TSCHEDUL",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD",
|
|
type: "NVarchar(500)",
|
|
maxLength: 500,
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(string),
|
|
oldType: "NVarchar(500)",
|
|
oldMaxLength: 500,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_PRO_SCHEDULING",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_PRO_PLANING",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_PRO_HSCHEDUL",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "WriteState",
|
|
table: "SUPPLIER_PRO_FLAW",
|
|
type: "bit",
|
|
nullable: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit",
|
|
oldDefaultValue: false);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_PRO_FLAW",
|
|
type: "NVarchar(500)",
|
|
maxLength: 500,
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(string),
|
|
oldType: "NVarchar(500)",
|
|
oldMaxLength: 500,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "ReadState",
|
|
table: "SUPPLIER_PRO_FLAW",
|
|
type: "bit",
|
|
nullable: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit",
|
|
oldDefaultValue: false);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_PRO_CSCHEDUL",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_PO",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_INV_DATA",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_INFO",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_EMPLOYEE",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_DEL_STATE",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_CON_PO",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_BOM",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
}
|
|
}
|
|
}
|
|
|