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.
8729 lines
296 KiB
8729 lines
296 KiB
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace TaskManager.EntityFramework.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class z20250529 : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "ReadState",
|
|
table: "TaskLogs",
|
|
type: "bit",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
|
|
migrationBuilder.AddColumn<Guid>(
|
|
name: "TaskId",
|
|
table: "TaskLogs",
|
|
type: "uniqueidentifier",
|
|
nullable: false,
|
|
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"));
|
|
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "WriteState",
|
|
table: "TaskLogs",
|
|
type: "bit",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "WriteState",
|
|
table: "SUPPLIER_SINV_DATA",
|
|
type: "bit",
|
|
nullable: false,
|
|
defaultValue: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "SupplieryxqDate",
|
|
table: "SUPPLIER_SINV_DATA",
|
|
type: "CHAR(19)",
|
|
maxLength: 19,
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "SupplierName",
|
|
table: "SUPPLIER_SINV_DATA",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "SupplierCode",
|
|
table: "SUPPLIER_SINV_DATA",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "SupplierBatch",
|
|
table: "SUPPLIER_SINV_DATA",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "SafetyStock",
|
|
table: "SUPPLIER_SINV_DATA",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_SINV_DATA",
|
|
type: "NVarchar(500)",
|
|
maxLength: 500,
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "ReadState",
|
|
table: "SUPPLIER_SINV_DATA",
|
|
type: "bit",
|
|
nullable: false,
|
|
defaultValue: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityPlan",
|
|
table: "SUPPLIER_SINV_DATA",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityCurrent",
|
|
table: "SUPPLIER_SINV_DATA",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ProductionCycle",
|
|
table: "SUPPLIER_SINV_DATA",
|
|
type: "VARCHAR(10)",
|
|
maxLength: 10,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialType",
|
|
table: "SUPPLIER_SINV_DATA",
|
|
type: "VARCHAR(20)",
|
|
maxLength: 20,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialDescription",
|
|
table: "SUPPLIER_SINV_DATA",
|
|
type: "VARCHAR(100)",
|
|
maxLength: 100,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialCode",
|
|
table: "SUPPLIER_SINV_DATA",
|
|
type: "VARCHAR(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "InventoryStatus",
|
|
table: "SUPPLIER_SINV_DATA",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "DataUpdateTime",
|
|
table: "SUPPLIER_SINV_DATA",
|
|
type: "CHAR(19)",
|
|
maxLength: 19,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "UpdateTime",
|
|
table: "SUPPLIER_SA_WEEK",
|
|
type: "datetime2",
|
|
maxLength: 50,
|
|
nullable: true,
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime2");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "UpdateByUser",
|
|
table: "SUPPLIER_SA_WEEK",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "SerialNumber",
|
|
table: "SUPPLIER_SA_WEEK",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ScheduleAgreement",
|
|
table: "SUPPLIER_SA_WEEK",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
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<decimal>(
|
|
name: "QuantityDemand",
|
|
table: "SUPPLIER_SA_WEEK",
|
|
type: "decimal(18,2)",
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "PurchasingGroup",
|
|
table: "SUPPLIER_SA_WEEK",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "PlantId",
|
|
table: "SUPPLIER_SA_WEEK",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialDescription",
|
|
table: "SUPPLIER_SA_WEEK",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialCode",
|
|
table: "SUPPLIER_SA_WEEK",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "DateReceived",
|
|
table: "SUPPLIER_SA_WEEK",
|
|
type: "datetime2",
|
|
maxLength: 50,
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "CreateTime",
|
|
table: "SUPPLIER_SA_WEEK",
|
|
type: "datetime2",
|
|
maxLength: 50,
|
|
nullable: true,
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime2");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "CreateByUser",
|
|
table: "SUPPLIER_SA_WEEK",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "UpdateTime",
|
|
table: "SUPPLIER_RETURN",
|
|
type: "datetime2",
|
|
nullable: true,
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime2");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "UpdateByUser",
|
|
table: "SUPPLIER_RETURN",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "SerialSrate",
|
|
table: "SUPPLIER_RETURN",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "SerialNumber",
|
|
table: "SUPPLIER_RETURN",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ReturnType",
|
|
table: "SUPPLIER_RETURN",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ReturnReason",
|
|
table: "SUPPLIER_RETURN",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ReturnNumber",
|
|
table: "SUPPLIER_RETURN",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_RETURN",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDelivery",
|
|
table: "SUPPLIER_RETURN",
|
|
type: "decimal(18,2)",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Plant",
|
|
table: "SUPPLIER_RETURN",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "PickUpLocation",
|
|
table: "SUPPLIER_RETURN",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "PickUpCrossings",
|
|
table: "SUPPLIER_RETURN",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialDescription",
|
|
table: "SUPPLIER_RETURN",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialCode",
|
|
table: "SUPPLIER_RETURN",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "LotNumber",
|
|
table: "SUPPLIER_RETURN",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Judge",
|
|
table: "SUPPLIER_RETURN",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Feedback",
|
|
table: "SUPPLIER_RETURN",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "DemandPickupTime",
|
|
table: "SUPPLIER_RETURN",
|
|
type: "datetime2",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "CreateTime",
|
|
table: "SUPPLIER_RETURN",
|
|
type: "datetime2",
|
|
nullable: true,
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime2");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "CreateByUser",
|
|
table: "SUPPLIER_RETURN",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Vin",
|
|
table: "SUPPLIER_PRO_TSCHEDUL",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "UpdateByUser",
|
|
table: "SUPPLIER_PRO_TSCHEDUL",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
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: "ProductionLineName",
|
|
table: "SUPPLIER_PRO_TSCHEDUL",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ProductionLineId",
|
|
table: "SUPPLIER_PRO_TSCHEDUL",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "OnLineTime",
|
|
table: "SUPPLIER_PRO_TSCHEDUL",
|
|
type: "datetime2",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Models",
|
|
table: "SUPPLIER_PRO_TSCHEDUL",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialDescription",
|
|
table: "SUPPLIER_PRO_TSCHEDUL",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialCode",
|
|
table: "SUPPLIER_PRO_TSCHEDUL",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "FinalWorkshop",
|
|
table: "SUPPLIER_PRO_TSCHEDUL",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "FinalOnLineTime",
|
|
table: "SUPPLIER_PRO_TSCHEDUL",
|
|
type: "datetime2",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "CreateByUser",
|
|
table: "SUPPLIER_PRO_TSCHEDUL",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
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<bool>(
|
|
name: "WriteState",
|
|
table: "SUPPLIER_PRO_SCHEDULING",
|
|
type: "bit",
|
|
nullable: false,
|
|
defaultValue: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_PRO_SCHEDULING",
|
|
type: "NVarchar(500)",
|
|
maxLength: 500,
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "ReadState",
|
|
table: "SUPPLIER_PRO_SCHEDULING",
|
|
type: "bit",
|
|
nullable: false,
|
|
defaultValue: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "ActualBeginTime",
|
|
table: "SUPPLIER_PRO_SCHEDULING",
|
|
type: "CHAR(19)",
|
|
maxLength: 19,
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "ActualEndTime",
|
|
table: "SUPPLIER_PRO_SCHEDULING",
|
|
type: "CHAR(19)",
|
|
maxLength: 19,
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "CheryProductName",
|
|
table: "SUPPLIER_PRO_SCHEDULING",
|
|
type: "VARCHAR(100)",
|
|
maxLength: 100,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "CheryProductNo",
|
|
table: "SUPPLIER_PRO_SCHEDULING",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<decimal>(
|
|
name: "ManufactureInputNum",
|
|
table: "SUPPLIER_PRO_SCHEDULING",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "ManufactureNo",
|
|
table: "SUPPLIER_PRO_SCHEDULING",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<decimal>(
|
|
name: "ManufactureNum",
|
|
table: "SUPPLIER_PRO_SCHEDULING",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: false,
|
|
defaultValue: 0m);
|
|
|
|
migrationBuilder.AddColumn<decimal>(
|
|
name: "ManufactureOutputNum",
|
|
table: "SUPPLIER_PRO_SCHEDULING",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: false,
|
|
defaultValue: 0m);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "PlanBeginTime",
|
|
table: "SUPPLIER_PRO_SCHEDULING",
|
|
type: "CHAR(19)",
|
|
maxLength: 19,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "PlanEndTime",
|
|
table: "SUPPLIER_PRO_SCHEDULING",
|
|
type: "CHAR(19)",
|
|
maxLength: 19,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "PlanNo",
|
|
table: "SUPPLIER_PRO_SCHEDULING",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "PlanStatus",
|
|
table: "SUPPLIER_PRO_SCHEDULING",
|
|
type: "CHAR(1)",
|
|
maxLength: 1,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "PlantId",
|
|
table: "SUPPLIER_PRO_SCHEDULING",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "PlantName",
|
|
table: "SUPPLIER_PRO_SCHEDULING",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "ProductBatchNo",
|
|
table: "SUPPLIER_PRO_SCHEDULING",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "SupplierCode",
|
|
table: "SUPPLIER_PRO_SCHEDULING",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "SupplierName",
|
|
table: "SUPPLIER_PRO_SCHEDULING",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "VendorProductName",
|
|
table: "SUPPLIER_PRO_SCHEDULING",
|
|
type: "VARCHAR(100)",
|
|
maxLength: 100,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "VendorProductNo",
|
|
table: "SUPPLIER_PRO_SCHEDULING",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "UpdateTime",
|
|
table: "SUPPLIER_PRO_PLANING",
|
|
type: "datetime2",
|
|
nullable: false,
|
|
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime2",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "UpdateByUser",
|
|
table: "SUPPLIER_PRO_PLANING",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Type",
|
|
table: "SUPPLIER_PRO_PLANING",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "StartMonth",
|
|
table: "SUPPLIER_PRO_PLANING",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
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: "ReleaseEdition",
|
|
table: "SUPPLIER_PRO_PLANING",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Plant",
|
|
table: "SUPPLIER_PRO_PLANING",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Pattern",
|
|
table: "SUPPLIER_PRO_PLANING",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Models",
|
|
table: "SUPPLIER_PRO_PLANING",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialCode",
|
|
table: "SUPPLIER_PRO_PLANING",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "CreateTime",
|
|
table: "SUPPLIER_PRO_PLANING",
|
|
type: "datetime2",
|
|
nullable: false,
|
|
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime2",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "CreateByUser",
|
|
table: "SUPPLIER_PRO_PLANING",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Assembly",
|
|
table: "SUPPLIER_PRO_PLANING",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "WriteState",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK",
|
|
type: "bit",
|
|
nullable: false,
|
|
defaultValue: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK",
|
|
type: "NVarchar(500)",
|
|
maxLength: 500,
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "ReadState",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK",
|
|
type: "bit",
|
|
nullable: false,
|
|
defaultValue: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "CheckNo",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "CheckResult",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK",
|
|
type: "CHAR(2)",
|
|
maxLength: 2,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "CheckTime",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK",
|
|
type: "CHAR(19)",
|
|
maxLength: 19,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "ComponentCode",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "ComponentName",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "DeadLine",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK",
|
|
type: "VARCHAR(10)",
|
|
maxLength: 10,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "DeviceCode",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "DeviceName",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK",
|
|
type: "VARCHAR(100)",
|
|
maxLength: 100,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "EmpCode",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK",
|
|
type: "VARCHAR(16)",
|
|
maxLength: 16,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "EmpName",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "FeatureLower",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "FeatureName",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK",
|
|
type: "VARCHAR(100)",
|
|
maxLength: 100,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "FeatureUnit",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK",
|
|
type: "VARCHAR(100)",
|
|
maxLength: 100,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "FeatureUpper",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "FeatureValue",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "LimitUpdateTime",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK",
|
|
type: "CHAR(19)",
|
|
maxLength: 19,
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<decimal>(
|
|
name: "SamplingRate",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "StandardValue",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK",
|
|
type: "VARCHAR(100)",
|
|
maxLength: 100,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "SubBatchNo",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<decimal>(
|
|
name: "SubBatchNum",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: false,
|
|
defaultValue: 0m);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "SubBatchSn",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "SubSupplierAddress",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK",
|
|
type: "VARCHAR(100)",
|
|
maxLength: 100,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "SubSupplierCode",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "SubSupplierName",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK",
|
|
type: "VARCHAR(100)",
|
|
maxLength: 100,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "SupplierCode",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "SupplierName",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "SupplierSubCode",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "SupplierSubName",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK",
|
|
type: "VARCHAR(100)",
|
|
maxLength: 100,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "VendorFieldCode",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "VendorFieldDesc",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Vin",
|
|
table: "SUPPLIER_PRO_HSCHEDUL",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "UpdateByUser",
|
|
table: "SUPPLIER_PRO_HSCHEDUL",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
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<string>(
|
|
name: "ProductionType",
|
|
table: "SUPPLIER_PRO_HSCHEDUL",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ProductionLineName",
|
|
table: "SUPPLIER_PRO_HSCHEDUL",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ProductionLineId",
|
|
table: "SUPPLIER_PRO_HSCHEDUL",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "OnLineTime",
|
|
table: "SUPPLIER_PRO_HSCHEDUL",
|
|
type: "datetime2",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Models",
|
|
table: "SUPPLIER_PRO_HSCHEDUL",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialDescription",
|
|
table: "SUPPLIER_PRO_HSCHEDUL",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialCode",
|
|
table: "SUPPLIER_PRO_HSCHEDUL",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "CreateByUser",
|
|
table: "SUPPLIER_PRO_HSCHEDUL",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "WriteState",
|
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
|
|
type: "bit",
|
|
nullable: false,
|
|
defaultValue: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
|
|
type: "NVarchar(500)",
|
|
maxLength: 500,
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "ReadState",
|
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
|
|
type: "bit",
|
|
nullable: false,
|
|
defaultValue: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit");
|
|
|
|
migrationBuilder.AddColumn<decimal>(
|
|
name: "AcceptableNumber",
|
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: false,
|
|
defaultValue: 0m);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "CheryProductName",
|
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
|
|
type: "VARCHAR(100)",
|
|
maxLength: 100,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "CheryProductNo",
|
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "DateTime",
|
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
|
|
type: "CHAR(19)",
|
|
maxLength: 19,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<decimal>(
|
|
name: "DefectiveNumber",
|
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: false,
|
|
defaultValue: 0m);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "ManufactureNo",
|
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<decimal>(
|
|
name: "OncePassRateRealValue",
|
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: false,
|
|
defaultValue: 0m);
|
|
|
|
migrationBuilder.AddColumn<decimal>(
|
|
name: "OncePassRateTagValue",
|
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: false,
|
|
defaultValue: 0m);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "PlantId",
|
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "PlantName",
|
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "ProductBatchNo",
|
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "ProductionLineId",
|
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "ProductionLineName",
|
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "StatisticalTime",
|
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
|
|
type: "CHAR(19)",
|
|
maxLength: 19,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "SupplierCode",
|
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "SupplierName",
|
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "VendorProductName",
|
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
|
|
type: "VARCHAR(100)",
|
|
maxLength: 100,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "VendorProductNo",
|
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<decimal>(
|
|
name: "WorkOrderNumber",
|
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: false,
|
|
defaultValue: 0m);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "WorkShift",
|
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
|
|
type: "VARCHAR(10)",
|
|
maxLength: 10,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "WorkshopId",
|
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "WorkshopName",
|
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: true);
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "WriteState",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
type: "bit",
|
|
nullable: false,
|
|
defaultValue: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
type: "NVarchar(500)",
|
|
maxLength: 500,
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "ReadState",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
type: "bit",
|
|
nullable: false,
|
|
defaultValue: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "CheryProductName",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
type: "VARCHAR(100)",
|
|
maxLength: 100,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "CheryProductNo",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "CheryProductSn",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "ChildHardwareRevision",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "ChildPackageInfo",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "ChildSoftwareRevision",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "ChildSource",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "CollectTime",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
type: "CHAR(19)",
|
|
maxLength: 19,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "DateTime",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
type: "CHAR(16)",
|
|
maxLength: 16,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "EmpCode",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "EmpName",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "FinalQualityStatus",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
type: "VARCHAR(8)",
|
|
maxLength: 8,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "InstrumentQualityStatus",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
type: "VARCHAR(8)",
|
|
maxLength: 8,
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "ManualQualityStatus",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
type: "VARCHAR(8)",
|
|
maxLength: 8,
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "ManufactureNo",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "MaterialInputTime",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
type: "CHAR(19)",
|
|
maxLength: 19,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "MaterialOutputTime",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
type: "CHAR(19)",
|
|
maxLength: 19,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "ParentHardwareRevision",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "ParentSoftwareRevision",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "PlantId",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "PlantName",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "ProductBatchNo",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "ProductionLineId",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "ProductionLineName",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
type: "VARCHAR(100)",
|
|
maxLength: 100,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "StationId",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "StationName",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "SubBatchNo",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "SubProdName",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
type: "VARCHAR(100)",
|
|
maxLength: 100,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "SubProdNo",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<decimal>(
|
|
name: "SubProdNum",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: false,
|
|
defaultValue: 0m);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "SubProdSn",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "SubSupplierCode",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "SubSupplierName",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
type: "VARCHAR(100)",
|
|
maxLength: 100,
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "SupplierCode",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "SupplierName",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "VendorFieldName",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
type: "VARCHAR(100)",
|
|
maxLength: 100,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "VendorFieldNum",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "VendorProductBatch",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "VendorProductName",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
type: "VARCHAR(100)",
|
|
maxLength: 100,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "VendorProductNo",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "VendorProductSn",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "WorkShift",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
type: "VARCHAR(10)",
|
|
maxLength: 10,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "WorkshopId",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "WorkshopName",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Vin",
|
|
table: "SUPPLIER_PRO_CSCHEDUL",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "UpdateTime",
|
|
table: "SUPPLIER_PRO_CSCHEDUL",
|
|
type: "datetime2",
|
|
nullable: true,
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime2");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "UpdateByUser",
|
|
table: "SUPPLIER_PRO_CSCHEDUL",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "SortTime",
|
|
table: "SUPPLIER_PRO_CSCHEDUL",
|
|
type: "nvarchar(8)",
|
|
maxLength: 8,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "SortDate",
|
|
table: "SUPPLIER_PRO_CSCHEDUL",
|
|
type: "datetime2",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
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: "ProductionLineName",
|
|
table: "SUPPLIER_PRO_CSCHEDUL",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ProductionLineId",
|
|
table: "SUPPLIER_PRO_CSCHEDUL",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Plant",
|
|
table: "SUPPLIER_PRO_CSCHEDUL",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "OnLineTime",
|
|
table: "SUPPLIER_PRO_CSCHEDUL",
|
|
type: "nvarchar(8)",
|
|
maxLength: 8,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "OnLineDate",
|
|
table: "SUPPLIER_PRO_CSCHEDUL",
|
|
type: "datetime2",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MotorMaterialCode",
|
|
table: "SUPPLIER_PRO_CSCHEDUL",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Models",
|
|
table: "SUPPLIER_PRO_CSCHEDUL",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ModelCategory",
|
|
table: "SUPPLIER_PRO_CSCHEDUL",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialDescription",
|
|
table: "SUPPLIER_PRO_CSCHEDUL",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialCode",
|
|
table: "SUPPLIER_PRO_CSCHEDUL",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "CreateTime",
|
|
table: "SUPPLIER_PRO_CSCHEDUL",
|
|
type: "datetime2",
|
|
nullable: true,
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime2");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "CreateByUser",
|
|
table: "SUPPLIER_PRO_CSCHEDUL",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "AssemblyMaterialCode",
|
|
table: "SUPPLIER_PRO_CSCHEDUL",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "WriteState",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "bit",
|
|
nullable: false,
|
|
defaultValue: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "NVarchar(500)",
|
|
maxLength: 500,
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "ReadState",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "bit",
|
|
nullable: false,
|
|
defaultValue: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "CarrierCode",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "Cc",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "CHAR(1)",
|
|
maxLength: 1,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "Characteristic",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "CheckMode",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "VARCHAR(10)",
|
|
maxLength: 10,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "CheckResult",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "VARCHAR(8)",
|
|
maxLength: 8,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "CheryProductName",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "VARCHAR(100)",
|
|
maxLength: 100,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "CheryProductNo",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "CheryProductSn",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "CollectTime",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "CHAR(19)",
|
|
maxLength: 19,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<decimal>(
|
|
name: "DecimalValue",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "DECIMAL(26,15)",
|
|
precision: 26,
|
|
scale: 15,
|
|
nullable: false,
|
|
defaultValue: 0m);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "DetectionMode",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "VARCHAR(20)",
|
|
maxLength: 20,
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "DeviceCode",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "DeviceName",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "VARCHAR(100)",
|
|
maxLength: 100,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "EmpCode",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "EmpName",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "VARCHAR(10)",
|
|
maxLength: 10,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<decimal>(
|
|
name: "FttQty",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: false,
|
|
defaultValue: 0m);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "GatherSpot",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<decimal>(
|
|
name: "IntputQty",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: false,
|
|
defaultValue: 0m);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "LimitUpdateTime",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "CHAR(19)",
|
|
maxLength: 19,
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<decimal>(
|
|
name: "LowerLimit",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "DECIMAL(26,15)",
|
|
precision: 26,
|
|
scale: 15,
|
|
nullable: false,
|
|
defaultValue: 0m);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "ManufactureNo",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "Parameter",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "PlantId",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "PlantName",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "ProductBatchNo",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "ProductionLineId",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "ProductionLineName",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "VARCHAR(100)",
|
|
maxLength: 100,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<decimal>(
|
|
name: "SamplingRate",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "Sc",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "CHAR(1)",
|
|
maxLength: 1,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "Spc",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "CHAR(1)",
|
|
maxLength: 1,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "StandardValue",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "VARCHAR(100)",
|
|
maxLength: 100,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "StationId",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "StationName",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "SupplierCode",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "SupplierName",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "UnitCn",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "VARCHAR(100)",
|
|
maxLength: 100,
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "UnitEn",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "VARCHAR(100)",
|
|
maxLength: 100,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<decimal>(
|
|
name: "UpperLimit",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "DECIMAL(26,15)",
|
|
precision: 26,
|
|
scale: 15,
|
|
nullable: false,
|
|
defaultValue: 0m);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "VendorFieldCode",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "VendorFieldDesc",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "VARCHAR(100)",
|
|
maxLength: 100,
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "VendorFieldName",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "VendorProductBatch",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "VendorProductName",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "VARCHAR(100)",
|
|
maxLength: 100,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "VendorProductNo",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "VendorProductSn",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "WorkShift",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "VARCHAR(10)",
|
|
maxLength: 10,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "WorkshopId",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "WorkshopName",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "VoucherDate",
|
|
table: "SUPPLIER_PO",
|
|
type: "datetime2",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "UpdateTime",
|
|
table: "SUPPLIER_PO",
|
|
type: "datetime2",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "UpdateByUser",
|
|
table: "SUPPLIER_PO",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "TradeTerms",
|
|
table: "SUPPLIER_PO",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Supplier",
|
|
table: "SUPPLIER_PO",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "SerialNumber",
|
|
table: "SUPPLIER_PO",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_PO",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand",
|
|
table: "SUPPLIER_PO",
|
|
type: "decimal(18,2)",
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Purchaser",
|
|
table: "SUPPLIER_PO",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "PurchaseOrder",
|
|
table: "SUPPLIER_PO",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "PlantName",
|
|
table: "SUPPLIER_PO",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "PlantId",
|
|
table: "SUPPLIER_PO",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Note",
|
|
table: "SUPPLIER_PO",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialUnit",
|
|
table: "SUPPLIER_PO",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialDescription",
|
|
table: "SUPPLIER_PO",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialCode",
|
|
table: "SUPPLIER_PO",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ItemType",
|
|
table: "SUPPLIER_PO",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "DeliveryPlace",
|
|
table: "SUPPLIER_PO",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "DeliveryDate",
|
|
table: "SUPPLIER_PO",
|
|
type: "datetime2",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "CreateTime",
|
|
table: "SUPPLIER_PO",
|
|
type: "datetime2",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "CreateByUser",
|
|
table: "SUPPLIER_PO",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Country",
|
|
table: "SUPPLIER_PO",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Batch",
|
|
table: "SUPPLIER_PO",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "UpdateTime",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
type: "datetime2",
|
|
nullable: true,
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime2");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "UpdateByUser",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "SummarySign",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "SummaryQuantityReceive",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
type: "decimal(18,2)",
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "SummaryQuantityInTransit",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
type: "decimal(18,2)",
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "SummaryQuantityDelivery",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
type: "decimal(18,2)",
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "SummaryCreatQuantity",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
type: "decimal(18,2)",
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
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<decimal>(
|
|
name: "QuantityReceive",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
type: "decimal(18,2)",
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityInTransit",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
type: "decimal(18,2)",
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
type: "decimal(18,2)",
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDelivery",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
type: "decimal(18,2)",
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "PlantName",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "PlantId",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "OnTimePercentage",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
type: "decimal(18,2)",
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialDescription",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialCode",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "DemandType",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "DemandSrate",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "DateRequired",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
type: "datetime2",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "CreateTime",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
type: "datetime2",
|
|
nullable: true,
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime2");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "CreateByUser",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "CreatQuantity",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
type: "decimal(18,2)",
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "ConfirmTime",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
type: "datetime2",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "UpdateByUser",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "StartMonth",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
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: "ReleaseEdition",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityDemand12",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "PlantName",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "PlantId",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialDescription",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialCode",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "IsUpdate",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "IsDelete",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "CreateByUser",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "UpdateTime",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "datetime2",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "UpdateByUser",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "StartDate",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "datetime2",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
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: "ReleaseEdition",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand9",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "decimal(18,2)",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand8",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "decimal(18,2)",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand7",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "decimal(18,2)",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand6",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "decimal(18,2)",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand5",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "decimal(18,2)",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand4",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "decimal(18,2)",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand31",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "decimal(18,2)",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand30",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "decimal(18,2)",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand29",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "decimal(18,2)",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand28",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "decimal(18,2)",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand27",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "decimal(18,2)",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand26",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "decimal(18,2)",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand25",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "decimal(18,2)",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand24",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "decimal(18,2)",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand23",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "decimal(18,2)",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand22",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "decimal(18,2)",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand21",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "decimal(18,2)",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand20",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "decimal(18,2)",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand19",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "decimal(18,2)",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand18",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "decimal(18,2)",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand17",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "decimal(18,2)",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand16",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "decimal(18,2)",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand15",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "decimal(18,2)",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand14",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "decimal(18,2)",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand13",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "decimal(18,2)",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand12",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "decimal(18,2)",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand11",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "decimal(18,2)",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand10",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "decimal(18,2)",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "PlantName",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "PlantId",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialDescription",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialCode",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "CreateTime",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "datetime2",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "CreateByUser",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "UpdateTime",
|
|
table: "SUPPLIER_INV_DATA",
|
|
type: "datetime2",
|
|
nullable: true,
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime2");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "UpdateByUser",
|
|
table: "SUPPLIER_INV_DATA",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "StockState",
|
|
table: "SUPPLIER_INV_DATA",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
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<decimal>(
|
|
name: "QuantityCurrent",
|
|
table: "SUPPLIER_INV_DATA",
|
|
type: "decimal(18,2)",
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "PlantName",
|
|
table: "SUPPLIER_INV_DATA",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "PlantId",
|
|
table: "SUPPLIER_INV_DATA",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialDescription",
|
|
table: "SUPPLIER_INV_DATA",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialCode",
|
|
table: "SUPPLIER_INV_DATA",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "DataUpdateTime",
|
|
table: "SUPPLIER_INV_DATA",
|
|
type: "datetime2",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "CreateTime",
|
|
table: "SUPPLIER_INV_DATA",
|
|
type: "datetime2",
|
|
nullable: true,
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime2");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "CreateByUser",
|
|
table: "SUPPLIER_INV_DATA",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "WriteState",
|
|
table: "SUPPLIER_INFO",
|
|
type: "bit",
|
|
nullable: false,
|
|
defaultValue: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_INFO",
|
|
type: "NVarchar(500)",
|
|
maxLength: 500,
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "ReadState",
|
|
table: "SUPPLIER_INFO",
|
|
type: "bit",
|
|
nullable: false,
|
|
defaultValue: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "CheryProductName",
|
|
table: "SUPPLIER_INFO",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "CheryProductNo",
|
|
table: "SUPPLIER_INFO",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "DataUpdateTime",
|
|
table: "SUPPLIER_INFO",
|
|
type: "CHAR(19)",
|
|
maxLength: 19,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "KeyStation",
|
|
table: "SUPPLIER_INFO",
|
|
type: "CHAR(1)",
|
|
maxLength: 1,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "PlantId",
|
|
table: "SUPPLIER_INFO",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "PlantName",
|
|
table: "SUPPLIER_INFO",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "ProductionLineId",
|
|
table: "SUPPLIER_INFO",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "ProductionLineName",
|
|
table: "SUPPLIER_INFO",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<decimal>(
|
|
name: "ProductionLineOrder",
|
|
table: "SUPPLIER_INFO",
|
|
type: "DECIMAL(16,0)",
|
|
precision: 16,
|
|
scale: 0,
|
|
nullable: false,
|
|
defaultValue: 0m);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "StationId",
|
|
table: "SUPPLIER_INFO",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "StationName",
|
|
table: "SUPPLIER_INFO",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<decimal>(
|
|
name: "StationOrder",
|
|
table: "SUPPLIER_INFO",
|
|
type: "DECIMAL(16,0)",
|
|
precision: 16,
|
|
scale: 0,
|
|
nullable: false,
|
|
defaultValue: 0m);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "SupplierCode",
|
|
table: "SUPPLIER_INFO",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "SupplierName",
|
|
table: "SUPPLIER_INFO",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "VendorProductName",
|
|
table: "SUPPLIER_INFO",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "VendorProductNo",
|
|
table: "SUPPLIER_INFO",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "WorkshopId",
|
|
table: "SUPPLIER_INFO",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "WorkshopName",
|
|
table: "SUPPLIER_INFO",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "WriteState",
|
|
table: "SUPPLIER_EMPLOYEE",
|
|
type: "bit",
|
|
nullable: false,
|
|
defaultValue: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_EMPLOYEE",
|
|
type: "NVarchar(500)",
|
|
maxLength: 500,
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "ReadState",
|
|
table: "SUPPLIER_EMPLOYEE",
|
|
type: "bit",
|
|
nullable: false,
|
|
defaultValue: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "CheckInTime",
|
|
table: "SUPPLIER_EMPLOYEE",
|
|
type: "CHAR(19)",
|
|
maxLength: 19,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "CheckOutTime",
|
|
table: "SUPPLIER_EMPLOYEE",
|
|
type: "CHAR(19)",
|
|
maxLength: 19,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "DataUpdateTime",
|
|
table: "SUPPLIER_EMPLOYEE",
|
|
type: "CHAR(19)",
|
|
maxLength: 19,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "HaveQuantity",
|
|
table: "SUPPLIER_EMPLOYEE",
|
|
type: "CHAR(1)",
|
|
maxLength: 1,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "OperatorId",
|
|
table: "SUPPLIER_EMPLOYEE",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "OperatorName",
|
|
table: "SUPPLIER_EMPLOYEE",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "PlantId",
|
|
table: "SUPPLIER_EMPLOYEE",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "PlantName",
|
|
table: "SUPPLIER_EMPLOYEE",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "PositionId",
|
|
table: "SUPPLIER_EMPLOYEE",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "PositionName",
|
|
table: "SUPPLIER_EMPLOYEE",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "ProductionLineId",
|
|
table: "SUPPLIER_EMPLOYEE",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "ProductionLineName",
|
|
table: "SUPPLIER_EMPLOYEE",
|
|
type: "VARCHAR(100)",
|
|
maxLength: 100,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "QualificationLevel",
|
|
table: "SUPPLIER_EMPLOYEE",
|
|
type: "VARCHAR(16)",
|
|
maxLength: 16,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "StationId",
|
|
table: "SUPPLIER_EMPLOYEE",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "StationName",
|
|
table: "SUPPLIER_EMPLOYEE",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "SupplierCode",
|
|
table: "SUPPLIER_EMPLOYEE",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "SupplierName",
|
|
table: "SUPPLIER_EMPLOYEE",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "WorkshopId",
|
|
table: "SUPPLIER_EMPLOYEE",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "WorkshopName",
|
|
table: "SUPPLIER_EMPLOYEE",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "UpdateByUser",
|
|
table: "SUPPLIER_DEL_STATE",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "SupplierReceiveTime",
|
|
table: "SUPPLIER_DEL_STATE",
|
|
type: "datetime2",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "SerialSrate",
|
|
table: "SUPPLIER_DEL_STATE",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "SerialNumber",
|
|
table: "SUPPLIER_DEL_STATE",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "RoadShippedTime",
|
|
table: "SUPPLIER_DEL_STATE",
|
|
type: "datetime2",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "RoadReceiveTime",
|
|
table: "SUPPLIER_DEL_STATE",
|
|
type: "datetime2",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
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: "ReceivingCrossings",
|
|
table: "SUPPLIER_DEL_STATE",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "PlantId",
|
|
table: "SUPPLIER_DEL_STATE",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialDescription",
|
|
table: "SUPPLIER_DEL_STATE",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialCode",
|
|
table: "SUPPLIER_DEL_STATE",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "DeliveryNumber",
|
|
table: "SUPPLIER_DEL_STATE",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "DataCreateTime",
|
|
table: "SUPPLIER_DEL_STATE",
|
|
type: "datetime2",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "CreateByUser",
|
|
table: "SUPPLIER_DEL_STATE",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "WriteState",
|
|
table: "SUPPLIER_CON_PO",
|
|
type: "bit",
|
|
nullable: false,
|
|
defaultValue: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "VentureType",
|
|
table: "SUPPLIER_CON_PO",
|
|
type: "VARCHAR(50)",
|
|
maxLength: 50,
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "VentureSpecific",
|
|
table: "SUPPLIER_CON_PO",
|
|
type: "VARCHAR(255)",
|
|
maxLength: 255,
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "SupplierCode",
|
|
table: "SUPPLIER_CON_PO",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "SerialNumber",
|
|
table: "SUPPLIER_CON_PO",
|
|
type: "VARCHAR(10)",
|
|
maxLength: 10,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_CON_PO",
|
|
type: "NVarchar(500)",
|
|
maxLength: 500,
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "ReadState",
|
|
table: "SUPPLIER_CON_PO",
|
|
type: "bit",
|
|
nullable: false,
|
|
defaultValue: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityMeet",
|
|
table: "SUPPLIER_CON_PO",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "PurchaseOrder",
|
|
table: "SUPPLIER_CON_PO",
|
|
type: "VARCHAR(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Measures",
|
|
table: "SUPPLIER_CON_PO",
|
|
type: "VARCHAR(255)",
|
|
maxLength: 255,
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "FeedbackResults",
|
|
table: "SUPPLIER_CON_PO",
|
|
type: "VARCHAR(10)",
|
|
maxLength: 10,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "WriteState",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "bit",
|
|
nullable: false,
|
|
defaultValue: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "VentureType",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "VARCHAR(50)",
|
|
maxLength: 50,
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "VentureSpecific",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "VARCHAR(255)",
|
|
maxLength: 255,
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "SupplierCode",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "StartMonth",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "CHAR(7)",
|
|
maxLength: 7,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "NVarchar(500)",
|
|
maxLength: 500,
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ReleaseEdition",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "ReadState",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "bit",
|
|
nullable: false,
|
|
defaultValue: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityMeet9",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityMeet8",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityMeet7",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityMeet6",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityMeet5",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityMeet4",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityMeet3",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityMeet2",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityMeet12",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityMeet11",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityMeet10",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityMeet1",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "PlantId",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Measures",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "VARCHAR(255)",
|
|
maxLength: 255,
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialCode",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "VARCHAR(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "FeedbackResults",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "VARCHAR(10)",
|
|
maxLength: 10,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "WriteState",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "bit",
|
|
nullable: false,
|
|
defaultValue: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "VentureType",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "VARCHAR(50)",
|
|
maxLength: 50,
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "VentureSpecific",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "VARCHAR(255)",
|
|
maxLength: 255,
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "SupplierCode",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "StartDate",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "CHAR(10)",
|
|
maxLength: 10,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "NVarchar(500)",
|
|
maxLength: 500,
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ReleaseEdition",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "ReadState",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "bit",
|
|
nullable: false,
|
|
defaultValue: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityMeet9",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityMeet8",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityMeet7",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityMeet6",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityMeet5",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityMeet4",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityMeet31",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityMeet30",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityMeet3",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityMeet29",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityMeet28",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityMeet27",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityMeet26",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityMeet25",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityMeet24",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityMeet23",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityMeet22",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityMeet21",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityMeet20",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityMeet2",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityMeet19",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityMeet18",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityMeet17",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityMeet16",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityMeet15",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityMeet14",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityMeet13",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityMeet12",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityMeet11",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityMeet10",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityMeet1",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "PlantId",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Measures",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "VARCHAR(255)",
|
|
maxLength: 255,
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialCode",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "VARCHAR(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "FeedbackResults",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "VARCHAR(10)",
|
|
maxLength: 10,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "WriteState",
|
|
table: "SUPPLIER_BOM",
|
|
type: "bit",
|
|
nullable: false,
|
|
defaultValue: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_BOM",
|
|
type: "NVarchar(500)",
|
|
maxLength: 500,
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "ReadState",
|
|
table: "SUPPLIER_BOM",
|
|
type: "bit",
|
|
nullable: false,
|
|
defaultValue: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "BomCode",
|
|
table: "SUPPLIER_BOM",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "BomName",
|
|
table: "SUPPLIER_BOM",
|
|
type: "VARCHAR(100)",
|
|
maxLength: 100,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "BomVersion",
|
|
table: "SUPPLIER_BOM",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "CheryProductName",
|
|
table: "SUPPLIER_BOM",
|
|
type: "VARCHAR(100)",
|
|
maxLength: 100,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "CheryProductNo",
|
|
table: "SUPPLIER_BOM",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "DataUpdateTime",
|
|
table: "SUPPLIER_BOM",
|
|
type: "CHAR(19)",
|
|
maxLength: 19,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "MaterialUnit",
|
|
table: "SUPPLIER_BOM",
|
|
type: "VARCHAR(8)",
|
|
maxLength: 8,
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "SubMaterialCode",
|
|
table: "SUPPLIER_BOM",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "SubMaterialName",
|
|
table: "SUPPLIER_BOM",
|
|
type: "VARCHAR(100)",
|
|
maxLength: 100,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<decimal>(
|
|
name: "SubMaterialQuota",
|
|
table: "SUPPLIER_BOM",
|
|
type: "DECIMAL(16,5)",
|
|
precision: 16,
|
|
scale: 5,
|
|
nullable: false,
|
|
defaultValue: 0m);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "SubMaterialType",
|
|
table: "SUPPLIER_BOM",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "SubMaterialUnit",
|
|
table: "SUPPLIER_BOM",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "SupplierCode",
|
|
table: "SUPPLIER_BOM",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "SupplierName",
|
|
table: "SUPPLIER_BOM",
|
|
type: "VARCHAR(64)",
|
|
maxLength: 64,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "VendorProductName",
|
|
table: "SUPPLIER_BOM",
|
|
type: "VARCHAR(100)",
|
|
maxLength: 100,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "VendorProductNo",
|
|
table: "SUPPLIER_BOM",
|
|
type: "VARCHAR(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "VendorProductType",
|
|
table: "SUPPLIER_BOM",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: true);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "ReadState",
|
|
table: "TaskLogs");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "TaskId",
|
|
table: "TaskLogs");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "WriteState",
|
|
table: "TaskLogs");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ActualBeginTime",
|
|
table: "SUPPLIER_PRO_SCHEDULING");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ActualEndTime",
|
|
table: "SUPPLIER_PRO_SCHEDULING");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "CheryProductName",
|
|
table: "SUPPLIER_PRO_SCHEDULING");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "CheryProductNo",
|
|
table: "SUPPLIER_PRO_SCHEDULING");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ManufactureInputNum",
|
|
table: "SUPPLIER_PRO_SCHEDULING");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ManufactureNo",
|
|
table: "SUPPLIER_PRO_SCHEDULING");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ManufactureNum",
|
|
table: "SUPPLIER_PRO_SCHEDULING");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ManufactureOutputNum",
|
|
table: "SUPPLIER_PRO_SCHEDULING");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "PlanBeginTime",
|
|
table: "SUPPLIER_PRO_SCHEDULING");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "PlanEndTime",
|
|
table: "SUPPLIER_PRO_SCHEDULING");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "PlanNo",
|
|
table: "SUPPLIER_PRO_SCHEDULING");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "PlanStatus",
|
|
table: "SUPPLIER_PRO_SCHEDULING");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "PlantId",
|
|
table: "SUPPLIER_PRO_SCHEDULING");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "PlantName",
|
|
table: "SUPPLIER_PRO_SCHEDULING");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ProductBatchNo",
|
|
table: "SUPPLIER_PRO_SCHEDULING");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "SupplierCode",
|
|
table: "SUPPLIER_PRO_SCHEDULING");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "SupplierName",
|
|
table: "SUPPLIER_PRO_SCHEDULING");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "VendorProductName",
|
|
table: "SUPPLIER_PRO_SCHEDULING");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "VendorProductNo",
|
|
table: "SUPPLIER_PRO_SCHEDULING");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "CheckNo",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "CheckResult",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "CheckTime",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ComponentCode",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ComponentName",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "DeadLine",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "DeviceCode",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "DeviceName",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "EmpCode",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "EmpName",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "FeatureLower",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "FeatureName",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "FeatureUnit",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "FeatureUpper",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "FeatureValue",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "LimitUpdateTime",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "SamplingRate",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "StandardValue",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "SubBatchNo",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "SubBatchNum",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "SubBatchSn",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "SubSupplierAddress",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "SubSupplierCode",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "SubSupplierName",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "SupplierCode",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "SupplierName",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "SupplierSubCode",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "SupplierSubName",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "VendorFieldCode",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "VendorFieldDesc",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "AcceptableNumber",
|
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "CheryProductName",
|
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "CheryProductNo",
|
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "DateTime",
|
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "DefectiveNumber",
|
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ManufactureNo",
|
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "OncePassRateRealValue",
|
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "OncePassRateTagValue",
|
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "PlantId",
|
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "PlantName",
|
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ProductBatchNo",
|
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ProductionLineId",
|
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ProductionLineName",
|
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "StatisticalTime",
|
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "SupplierCode",
|
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "SupplierName",
|
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "VendorProductName",
|
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "VendorProductNo",
|
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "WorkOrderNumber",
|
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "WorkShift",
|
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "WorkshopId",
|
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "WorkshopName",
|
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "CheryProductName",
|
|
table: "SUPPLIER_PRO_DATA");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "CheryProductNo",
|
|
table: "SUPPLIER_PRO_DATA");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "CheryProductSn",
|
|
table: "SUPPLIER_PRO_DATA");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ChildHardwareRevision",
|
|
table: "SUPPLIER_PRO_DATA");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ChildPackageInfo",
|
|
table: "SUPPLIER_PRO_DATA");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ChildSoftwareRevision",
|
|
table: "SUPPLIER_PRO_DATA");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ChildSource",
|
|
table: "SUPPLIER_PRO_DATA");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "CollectTime",
|
|
table: "SUPPLIER_PRO_DATA");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "DateTime",
|
|
table: "SUPPLIER_PRO_DATA");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "EmpCode",
|
|
table: "SUPPLIER_PRO_DATA");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "EmpName",
|
|
table: "SUPPLIER_PRO_DATA");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "FinalQualityStatus",
|
|
table: "SUPPLIER_PRO_DATA");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "InstrumentQualityStatus",
|
|
table: "SUPPLIER_PRO_DATA");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ManualQualityStatus",
|
|
table: "SUPPLIER_PRO_DATA");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ManufactureNo",
|
|
table: "SUPPLIER_PRO_DATA");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "MaterialInputTime",
|
|
table: "SUPPLIER_PRO_DATA");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "MaterialOutputTime",
|
|
table: "SUPPLIER_PRO_DATA");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ParentHardwareRevision",
|
|
table: "SUPPLIER_PRO_DATA");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ParentSoftwareRevision",
|
|
table: "SUPPLIER_PRO_DATA");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "PlantId",
|
|
table: "SUPPLIER_PRO_DATA");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "PlantName",
|
|
table: "SUPPLIER_PRO_DATA");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ProductBatchNo",
|
|
table: "SUPPLIER_PRO_DATA");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ProductionLineId",
|
|
table: "SUPPLIER_PRO_DATA");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ProductionLineName",
|
|
table: "SUPPLIER_PRO_DATA");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "StationId",
|
|
table: "SUPPLIER_PRO_DATA");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "StationName",
|
|
table: "SUPPLIER_PRO_DATA");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "SubBatchNo",
|
|
table: "SUPPLIER_PRO_DATA");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "SubProdName",
|
|
table: "SUPPLIER_PRO_DATA");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "SubProdNo",
|
|
table: "SUPPLIER_PRO_DATA");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "SubProdNum",
|
|
table: "SUPPLIER_PRO_DATA");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "SubProdSn",
|
|
table: "SUPPLIER_PRO_DATA");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "SubSupplierCode",
|
|
table: "SUPPLIER_PRO_DATA");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "SubSupplierName",
|
|
table: "SUPPLIER_PRO_DATA");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "SupplierCode",
|
|
table: "SUPPLIER_PRO_DATA");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "SupplierName",
|
|
table: "SUPPLIER_PRO_DATA");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "VendorFieldName",
|
|
table: "SUPPLIER_PRO_DATA");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "VendorFieldNum",
|
|
table: "SUPPLIER_PRO_DATA");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "VendorProductBatch",
|
|
table: "SUPPLIER_PRO_DATA");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "VendorProductName",
|
|
table: "SUPPLIER_PRO_DATA");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "VendorProductNo",
|
|
table: "SUPPLIER_PRO_DATA");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "VendorProductSn",
|
|
table: "SUPPLIER_PRO_DATA");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "WorkShift",
|
|
table: "SUPPLIER_PRO_DATA");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "WorkshopId",
|
|
table: "SUPPLIER_PRO_DATA");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "WorkshopName",
|
|
table: "SUPPLIER_PRO_DATA");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "CarrierCode",
|
|
table: "SUPPLIER_PRO_CPS");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Cc",
|
|
table: "SUPPLIER_PRO_CPS");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Characteristic",
|
|
table: "SUPPLIER_PRO_CPS");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "CheckMode",
|
|
table: "SUPPLIER_PRO_CPS");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "CheckResult",
|
|
table: "SUPPLIER_PRO_CPS");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "CheryProductName",
|
|
table: "SUPPLIER_PRO_CPS");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "CheryProductNo",
|
|
table: "SUPPLIER_PRO_CPS");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "CheryProductSn",
|
|
table: "SUPPLIER_PRO_CPS");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "CollectTime",
|
|
table: "SUPPLIER_PRO_CPS");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "DecimalValue",
|
|
table: "SUPPLIER_PRO_CPS");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "DetectionMode",
|
|
table: "SUPPLIER_PRO_CPS");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "DeviceCode",
|
|
table: "SUPPLIER_PRO_CPS");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "DeviceName",
|
|
table: "SUPPLIER_PRO_CPS");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "EmpCode",
|
|
table: "SUPPLIER_PRO_CPS");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "EmpName",
|
|
table: "SUPPLIER_PRO_CPS");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "FttQty",
|
|
table: "SUPPLIER_PRO_CPS");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "GatherSpot",
|
|
table: "SUPPLIER_PRO_CPS");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "IntputQty",
|
|
table: "SUPPLIER_PRO_CPS");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "LimitUpdateTime",
|
|
table: "SUPPLIER_PRO_CPS");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "LowerLimit",
|
|
table: "SUPPLIER_PRO_CPS");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ManufactureNo",
|
|
table: "SUPPLIER_PRO_CPS");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Parameter",
|
|
table: "SUPPLIER_PRO_CPS");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "PlantId",
|
|
table: "SUPPLIER_PRO_CPS");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "PlantName",
|
|
table: "SUPPLIER_PRO_CPS");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ProductBatchNo",
|
|
table: "SUPPLIER_PRO_CPS");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ProductionLineId",
|
|
table: "SUPPLIER_PRO_CPS");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ProductionLineName",
|
|
table: "SUPPLIER_PRO_CPS");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "SamplingRate",
|
|
table: "SUPPLIER_PRO_CPS");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Sc",
|
|
table: "SUPPLIER_PRO_CPS");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Spc",
|
|
table: "SUPPLIER_PRO_CPS");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "StandardValue",
|
|
table: "SUPPLIER_PRO_CPS");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "StationId",
|
|
table: "SUPPLIER_PRO_CPS");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "StationName",
|
|
table: "SUPPLIER_PRO_CPS");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "SupplierCode",
|
|
table: "SUPPLIER_PRO_CPS");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "SupplierName",
|
|
table: "SUPPLIER_PRO_CPS");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "UnitCn",
|
|
table: "SUPPLIER_PRO_CPS");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "UnitEn",
|
|
table: "SUPPLIER_PRO_CPS");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "UpperLimit",
|
|
table: "SUPPLIER_PRO_CPS");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "VendorFieldCode",
|
|
table: "SUPPLIER_PRO_CPS");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "VendorFieldDesc",
|
|
table: "SUPPLIER_PRO_CPS");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "VendorFieldName",
|
|
table: "SUPPLIER_PRO_CPS");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "VendorProductBatch",
|
|
table: "SUPPLIER_PRO_CPS");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "VendorProductName",
|
|
table: "SUPPLIER_PRO_CPS");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "VendorProductNo",
|
|
table: "SUPPLIER_PRO_CPS");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "VendorProductSn",
|
|
table: "SUPPLIER_PRO_CPS");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "WorkShift",
|
|
table: "SUPPLIER_PRO_CPS");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "WorkshopId",
|
|
table: "SUPPLIER_PRO_CPS");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "WorkshopName",
|
|
table: "SUPPLIER_PRO_CPS");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "CheryProductName",
|
|
table: "SUPPLIER_INFO");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "CheryProductNo",
|
|
table: "SUPPLIER_INFO");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "DataUpdateTime",
|
|
table: "SUPPLIER_INFO");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "KeyStation",
|
|
table: "SUPPLIER_INFO");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "PlantId",
|
|
table: "SUPPLIER_INFO");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "PlantName",
|
|
table: "SUPPLIER_INFO");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ProductionLineId",
|
|
table: "SUPPLIER_INFO");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ProductionLineName",
|
|
table: "SUPPLIER_INFO");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ProductionLineOrder",
|
|
table: "SUPPLIER_INFO");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "StationId",
|
|
table: "SUPPLIER_INFO");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "StationName",
|
|
table: "SUPPLIER_INFO");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "StationOrder",
|
|
table: "SUPPLIER_INFO");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "SupplierCode",
|
|
table: "SUPPLIER_INFO");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "SupplierName",
|
|
table: "SUPPLIER_INFO");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "VendorProductName",
|
|
table: "SUPPLIER_INFO");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "VendorProductNo",
|
|
table: "SUPPLIER_INFO");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "WorkshopId",
|
|
table: "SUPPLIER_INFO");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "WorkshopName",
|
|
table: "SUPPLIER_INFO");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "CheckInTime",
|
|
table: "SUPPLIER_EMPLOYEE");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "CheckOutTime",
|
|
table: "SUPPLIER_EMPLOYEE");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "DataUpdateTime",
|
|
table: "SUPPLIER_EMPLOYEE");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "HaveQuantity",
|
|
table: "SUPPLIER_EMPLOYEE");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "OperatorId",
|
|
table: "SUPPLIER_EMPLOYEE");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "OperatorName",
|
|
table: "SUPPLIER_EMPLOYEE");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "PlantId",
|
|
table: "SUPPLIER_EMPLOYEE");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "PlantName",
|
|
table: "SUPPLIER_EMPLOYEE");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "PositionId",
|
|
table: "SUPPLIER_EMPLOYEE");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "PositionName",
|
|
table: "SUPPLIER_EMPLOYEE");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ProductionLineId",
|
|
table: "SUPPLIER_EMPLOYEE");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ProductionLineName",
|
|
table: "SUPPLIER_EMPLOYEE");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "QualificationLevel",
|
|
table: "SUPPLIER_EMPLOYEE");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "StationId",
|
|
table: "SUPPLIER_EMPLOYEE");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "StationName",
|
|
table: "SUPPLIER_EMPLOYEE");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "SupplierCode",
|
|
table: "SUPPLIER_EMPLOYEE");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "SupplierName",
|
|
table: "SUPPLIER_EMPLOYEE");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "WorkshopId",
|
|
table: "SUPPLIER_EMPLOYEE");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "WorkshopName",
|
|
table: "SUPPLIER_EMPLOYEE");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "BomCode",
|
|
table: "SUPPLIER_BOM");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "BomName",
|
|
table: "SUPPLIER_BOM");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "BomVersion",
|
|
table: "SUPPLIER_BOM");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "CheryProductName",
|
|
table: "SUPPLIER_BOM");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "CheryProductNo",
|
|
table: "SUPPLIER_BOM");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "DataUpdateTime",
|
|
table: "SUPPLIER_BOM");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "MaterialUnit",
|
|
table: "SUPPLIER_BOM");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "SubMaterialCode",
|
|
table: "SUPPLIER_BOM");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "SubMaterialName",
|
|
table: "SUPPLIER_BOM");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "SubMaterialQuota",
|
|
table: "SUPPLIER_BOM");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "SubMaterialType",
|
|
table: "SUPPLIER_BOM");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "SubMaterialUnit",
|
|
table: "SUPPLIER_BOM");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "SupplierCode",
|
|
table: "SUPPLIER_BOM");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "SupplierName",
|
|
table: "SUPPLIER_BOM");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "VendorProductName",
|
|
table: "SUPPLIER_BOM");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "VendorProductNo",
|
|
table: "SUPPLIER_BOM");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "VendorProductType",
|
|
table: "SUPPLIER_BOM");
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "WriteState",
|
|
table: "SUPPLIER_SINV_DATA",
|
|
type: "bit",
|
|
nullable: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit",
|
|
oldDefaultValue: false);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "SupplieryxqDate",
|
|
table: "SUPPLIER_SINV_DATA",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(string),
|
|
oldType: "CHAR(19)",
|
|
oldMaxLength: 19,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "SupplierName",
|
|
table: "SUPPLIER_SINV_DATA",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "VARCHAR(64)",
|
|
oldMaxLength: 64);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "SupplierCode",
|
|
table: "SUPPLIER_SINV_DATA",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "VARCHAR(32)",
|
|
oldMaxLength: 32);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "SupplierBatch",
|
|
table: "SUPPLIER_SINV_DATA",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(string),
|
|
oldType: "VARCHAR(64)",
|
|
oldMaxLength: 64,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "SafetyStock",
|
|
table: "SUPPLIER_SINV_DATA",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "DECIMAL(16,5)",
|
|
oldPrecision: 16,
|
|
oldScale: 5);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_SINV_DATA",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "NVarchar(500)",
|
|
oldMaxLength: 500,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "ReadState",
|
|
table: "SUPPLIER_SINV_DATA",
|
|
type: "bit",
|
|
nullable: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit",
|
|
oldDefaultValue: false);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityPlan",
|
|
table: "SUPPLIER_SINV_DATA",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "DECIMAL(16,5)",
|
|
oldPrecision: 16,
|
|
oldScale: 5);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityCurrent",
|
|
table: "SUPPLIER_SINV_DATA",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "DECIMAL(16,5)",
|
|
oldPrecision: 16,
|
|
oldScale: 5);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ProductionCycle",
|
|
table: "SUPPLIER_SINV_DATA",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "VARCHAR(10)",
|
|
oldMaxLength: 10);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialType",
|
|
table: "SUPPLIER_SINV_DATA",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "VARCHAR(20)",
|
|
oldMaxLength: 20);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialDescription",
|
|
table: "SUPPLIER_SINV_DATA",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "VARCHAR(100)",
|
|
oldMaxLength: 100);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialCode",
|
|
table: "SUPPLIER_SINV_DATA",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "VARCHAR(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "InventoryStatus",
|
|
table: "SUPPLIER_SINV_DATA",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "VARCHAR(32)",
|
|
oldMaxLength: 32);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "DataUpdateTime",
|
|
table: "SUPPLIER_SINV_DATA",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "CHAR(19)",
|
|
oldMaxLength: 19);
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "UpdateTime",
|
|
table: "SUPPLIER_SA_WEEK",
|
|
type: "datetime2",
|
|
nullable: false,
|
|
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime2",
|
|
oldMaxLength: 50,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "UpdateByUser",
|
|
table: "SUPPLIER_SA_WEEK",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "SerialNumber",
|
|
table: "SUPPLIER_SA_WEEK",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ScheduleAgreement",
|
|
table: "SUPPLIER_SA_WEEK",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_SA_WEEK",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityDemand",
|
|
table: "SUPPLIER_SA_WEEK",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "PurchasingGroup",
|
|
table: "SUPPLIER_SA_WEEK",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "PlantId",
|
|
table: "SUPPLIER_SA_WEEK",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialDescription",
|
|
table: "SUPPLIER_SA_WEEK",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialCode",
|
|
table: "SUPPLIER_SA_WEEK",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "DateReceived",
|
|
table: "SUPPLIER_SA_WEEK",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime2",
|
|
oldMaxLength: 50,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "CreateTime",
|
|
table: "SUPPLIER_SA_WEEK",
|
|
type: "datetime2",
|
|
nullable: false,
|
|
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime2",
|
|
oldMaxLength: 50,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "CreateByUser",
|
|
table: "SUPPLIER_SA_WEEK",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "UpdateTime",
|
|
table: "SUPPLIER_RETURN",
|
|
type: "datetime2",
|
|
nullable: false,
|
|
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime2",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "UpdateByUser",
|
|
table: "SUPPLIER_RETURN",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "SerialSrate",
|
|
table: "SUPPLIER_RETURN",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "SerialNumber",
|
|
table: "SUPPLIER_RETURN",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ReturnType",
|
|
table: "SUPPLIER_RETURN",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ReturnReason",
|
|
table: "SUPPLIER_RETURN",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ReturnNumber",
|
|
table: "SUPPLIER_RETURN",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_RETURN",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityDelivery",
|
|
table: "SUPPLIER_RETURN",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Plant",
|
|
table: "SUPPLIER_RETURN",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "PickUpLocation",
|
|
table: "SUPPLIER_RETURN",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "PickUpCrossings",
|
|
table: "SUPPLIER_RETURN",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialDescription",
|
|
table: "SUPPLIER_RETURN",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialCode",
|
|
table: "SUPPLIER_RETURN",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "LotNumber",
|
|
table: "SUPPLIER_RETURN",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Judge",
|
|
table: "SUPPLIER_RETURN",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Feedback",
|
|
table: "SUPPLIER_RETURN",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "DemandPickupTime",
|
|
table: "SUPPLIER_RETURN",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime2",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "CreateTime",
|
|
table: "SUPPLIER_RETURN",
|
|
type: "datetime2",
|
|
nullable: false,
|
|
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime2",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "CreateByUser",
|
|
table: "SUPPLIER_RETURN",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Vin",
|
|
table: "SUPPLIER_PRO_TSCHEDUL",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "UpdateByUser",
|
|
table: "SUPPLIER_PRO_TSCHEDUL",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_PRO_TSCHEDUL",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ProductionLineName",
|
|
table: "SUPPLIER_PRO_TSCHEDUL",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ProductionLineId",
|
|
table: "SUPPLIER_PRO_TSCHEDUL",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "OnLineTime",
|
|
table: "SUPPLIER_PRO_TSCHEDUL",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime2",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Models",
|
|
table: "SUPPLIER_PRO_TSCHEDUL",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialDescription",
|
|
table: "SUPPLIER_PRO_TSCHEDUL",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialCode",
|
|
table: "SUPPLIER_PRO_TSCHEDUL",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "FinalWorkshop",
|
|
table: "SUPPLIER_PRO_TSCHEDUL",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "FinalOnLineTime",
|
|
table: "SUPPLIER_PRO_TSCHEDUL",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime2",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "CreateByUser",
|
|
table: "SUPPLIER_PRO_TSCHEDUL",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
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<bool>(
|
|
name: "WriteState",
|
|
table: "SUPPLIER_PRO_SCHEDULING",
|
|
type: "bit",
|
|
nullable: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit",
|
|
oldDefaultValue: false);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_PRO_SCHEDULING",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "NVarchar(500)",
|
|
oldMaxLength: 500,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "ReadState",
|
|
table: "SUPPLIER_PRO_SCHEDULING",
|
|
type: "bit",
|
|
nullable: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit",
|
|
oldDefaultValue: false);
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "UpdateTime",
|
|
table: "SUPPLIER_PRO_PLANING",
|
|
type: "datetime2",
|
|
nullable: true,
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime2");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "UpdateByUser",
|
|
table: "SUPPLIER_PRO_PLANING",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Type",
|
|
table: "SUPPLIER_PRO_PLANING",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "StartMonth",
|
|
table: "SUPPLIER_PRO_PLANING",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_PRO_PLANING",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ReleaseEdition",
|
|
table: "SUPPLIER_PRO_PLANING",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Plant",
|
|
table: "SUPPLIER_PRO_PLANING",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Pattern",
|
|
table: "SUPPLIER_PRO_PLANING",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Models",
|
|
table: "SUPPLIER_PRO_PLANING",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialCode",
|
|
table: "SUPPLIER_PRO_PLANING",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "CreateTime",
|
|
table: "SUPPLIER_PRO_PLANING",
|
|
type: "datetime2",
|
|
nullable: true,
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime2");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "CreateByUser",
|
|
table: "SUPPLIER_PRO_PLANING",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Assembly",
|
|
table: "SUPPLIER_PRO_PLANING",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "WriteState",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK",
|
|
type: "bit",
|
|
nullable: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit",
|
|
oldDefaultValue: false);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "NVarchar(500)",
|
|
oldMaxLength: 500,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "ReadState",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK",
|
|
type: "bit",
|
|
nullable: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit",
|
|
oldDefaultValue: false);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Vin",
|
|
table: "SUPPLIER_PRO_HSCHEDUL",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "UpdateByUser",
|
|
table: "SUPPLIER_PRO_HSCHEDUL",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_PRO_HSCHEDUL",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ProductionType",
|
|
table: "SUPPLIER_PRO_HSCHEDUL",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ProductionLineName",
|
|
table: "SUPPLIER_PRO_HSCHEDUL",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ProductionLineId",
|
|
table: "SUPPLIER_PRO_HSCHEDUL",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "OnLineTime",
|
|
table: "SUPPLIER_PRO_HSCHEDUL",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime2",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Models",
|
|
table: "SUPPLIER_PRO_HSCHEDUL",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialDescription",
|
|
table: "SUPPLIER_PRO_HSCHEDUL",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialCode",
|
|
table: "SUPPLIER_PRO_HSCHEDUL",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "CreateByUser",
|
|
table: "SUPPLIER_PRO_HSCHEDUL",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "WriteState",
|
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
|
|
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: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "NVarchar(500)",
|
|
oldMaxLength: 500,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "ReadState",
|
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
|
|
type: "bit",
|
|
nullable: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit",
|
|
oldDefaultValue: false);
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "WriteState",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
type: "bit",
|
|
nullable: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit",
|
|
oldDefaultValue: false);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "NVarchar(500)",
|
|
oldMaxLength: 500,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "ReadState",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
type: "bit",
|
|
nullable: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit",
|
|
oldDefaultValue: false);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Vin",
|
|
table: "SUPPLIER_PRO_CSCHEDUL",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "UpdateTime",
|
|
table: "SUPPLIER_PRO_CSCHEDUL",
|
|
type: "datetime2",
|
|
nullable: false,
|
|
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime2",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "UpdateByUser",
|
|
table: "SUPPLIER_PRO_CSCHEDUL",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "SortTime",
|
|
table: "SUPPLIER_PRO_CSCHEDUL",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(8)",
|
|
oldMaxLength: 8);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "SortDate",
|
|
table: "SUPPLIER_PRO_CSCHEDUL",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime2",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_PRO_CSCHEDUL",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ProductionLineName",
|
|
table: "SUPPLIER_PRO_CSCHEDUL",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ProductionLineId",
|
|
table: "SUPPLIER_PRO_CSCHEDUL",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Plant",
|
|
table: "SUPPLIER_PRO_CSCHEDUL",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "OnLineTime",
|
|
table: "SUPPLIER_PRO_CSCHEDUL",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(8)",
|
|
oldMaxLength: 8);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "OnLineDate",
|
|
table: "SUPPLIER_PRO_CSCHEDUL",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime2",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MotorMaterialCode",
|
|
table: "SUPPLIER_PRO_CSCHEDUL",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Models",
|
|
table: "SUPPLIER_PRO_CSCHEDUL",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ModelCategory",
|
|
table: "SUPPLIER_PRO_CSCHEDUL",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialDescription",
|
|
table: "SUPPLIER_PRO_CSCHEDUL",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialCode",
|
|
table: "SUPPLIER_PRO_CSCHEDUL",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "CreateTime",
|
|
table: "SUPPLIER_PRO_CSCHEDUL",
|
|
type: "datetime2",
|
|
nullable: false,
|
|
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime2",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "CreateByUser",
|
|
table: "SUPPLIER_PRO_CSCHEDUL",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "AssemblyMaterialCode",
|
|
table: "SUPPLIER_PRO_CSCHEDUL",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "WriteState",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "bit",
|
|
nullable: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit",
|
|
oldDefaultValue: false);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "NVarchar(500)",
|
|
oldMaxLength: 500,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "ReadState",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
type: "bit",
|
|
nullable: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit",
|
|
oldDefaultValue: false);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "VoucherDate",
|
|
table: "SUPPLIER_PO",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime2",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "UpdateTime",
|
|
table: "SUPPLIER_PO",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime2");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "UpdateByUser",
|
|
table: "SUPPLIER_PO",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "TradeTerms",
|
|
table: "SUPPLIER_PO",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Supplier",
|
|
table: "SUPPLIER_PO",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "SerialNumber",
|
|
table: "SUPPLIER_PO",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_PO",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityDemand",
|
|
table: "SUPPLIER_PO",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Purchaser",
|
|
table: "SUPPLIER_PO",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "PurchaseOrder",
|
|
table: "SUPPLIER_PO",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "PlantName",
|
|
table: "SUPPLIER_PO",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "PlantId",
|
|
table: "SUPPLIER_PO",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Note",
|
|
table: "SUPPLIER_PO",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialUnit",
|
|
table: "SUPPLIER_PO",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialDescription",
|
|
table: "SUPPLIER_PO",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialCode",
|
|
table: "SUPPLIER_PO",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ItemType",
|
|
table: "SUPPLIER_PO",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "DeliveryPlace",
|
|
table: "SUPPLIER_PO",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "DeliveryDate",
|
|
table: "SUPPLIER_PO",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime2",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "CreateTime",
|
|
table: "SUPPLIER_PO",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime2");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "CreateByUser",
|
|
table: "SUPPLIER_PO",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Country",
|
|
table: "SUPPLIER_PO",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Batch",
|
|
table: "SUPPLIER_PO",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "UpdateTime",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
type: "datetime2",
|
|
nullable: false,
|
|
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime2",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "UpdateByUser",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "SummarySign",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "SummaryQuantityReceive",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "SummaryQuantityInTransit",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "SummaryQuantityDelivery",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "SummaryCreatQuantity",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityReceive",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityInTransit",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityDemand",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityDelivery",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "PlantName",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "PlantId",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "OnTimePercentage",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialDescription",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialCode",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "DemandType",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "DemandSrate",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "DateRequired",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime2",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "CreateTime",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
type: "datetime2",
|
|
nullable: false,
|
|
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime2",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "CreateByUser",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "CreatQuantity",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ConfirmTime",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime2",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "UpdateByUser",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "StartMonth",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ReleaseEdition",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "QuantityDemand12",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
type: "decimal(18,2)",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "PlantName",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "PlantId",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialDescription",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialCode",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "IsUpdate",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "IsDelete",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "CreateByUser",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "UpdateTime",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime2");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "UpdateByUser",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "StartDate",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime2");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ReleaseEdition",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityDemand9",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityDemand8",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityDemand7",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityDemand6",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityDemand5",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityDemand4",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityDemand31",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityDemand30",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityDemand29",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityDemand28",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityDemand27",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityDemand26",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityDemand25",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityDemand24",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityDemand23",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityDemand22",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityDemand21",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityDemand20",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityDemand19",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityDemand18",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityDemand17",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityDemand16",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityDemand15",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityDemand14",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityDemand13",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityDemand12",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityDemand11",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityDemand10",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "PlantName",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "PlantId",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialDescription",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialCode",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "CreateTime",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime2");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "CreateByUser",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "UpdateTime",
|
|
table: "SUPPLIER_INV_DATA",
|
|
type: "datetime2",
|
|
nullable: false,
|
|
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime2",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "UpdateByUser",
|
|
table: "SUPPLIER_INV_DATA",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "StockState",
|
|
table: "SUPPLIER_INV_DATA",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_INV_DATA",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityCurrent",
|
|
table: "SUPPLIER_INV_DATA",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "PlantName",
|
|
table: "SUPPLIER_INV_DATA",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "PlantId",
|
|
table: "SUPPLIER_INV_DATA",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialDescription",
|
|
table: "SUPPLIER_INV_DATA",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialCode",
|
|
table: "SUPPLIER_INV_DATA",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "DataUpdateTime",
|
|
table: "SUPPLIER_INV_DATA",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime2",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "CreateTime",
|
|
table: "SUPPLIER_INV_DATA",
|
|
type: "datetime2",
|
|
nullable: false,
|
|
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime2",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "CreateByUser",
|
|
table: "SUPPLIER_INV_DATA",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "WriteState",
|
|
table: "SUPPLIER_INFO",
|
|
type: "bit",
|
|
nullable: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit",
|
|
oldDefaultValue: false);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_INFO",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "NVarchar(500)",
|
|
oldMaxLength: 500,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "ReadState",
|
|
table: "SUPPLIER_INFO",
|
|
type: "bit",
|
|
nullable: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit",
|
|
oldDefaultValue: false);
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "WriteState",
|
|
table: "SUPPLIER_EMPLOYEE",
|
|
type: "bit",
|
|
nullable: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit",
|
|
oldDefaultValue: false);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_EMPLOYEE",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "NVarchar(500)",
|
|
oldMaxLength: 500,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "ReadState",
|
|
table: "SUPPLIER_EMPLOYEE",
|
|
type: "bit",
|
|
nullable: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit",
|
|
oldDefaultValue: false);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "UpdateByUser",
|
|
table: "SUPPLIER_DEL_STATE",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "SupplierReceiveTime",
|
|
table: "SUPPLIER_DEL_STATE",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime2",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "SerialSrate",
|
|
table: "SUPPLIER_DEL_STATE",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "SerialNumber",
|
|
table: "SUPPLIER_DEL_STATE",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "RoadShippedTime",
|
|
table: "SUPPLIER_DEL_STATE",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime2",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "RoadReceiveTime",
|
|
table: "SUPPLIER_DEL_STATE",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime2",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_DEL_STATE",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ReceivingCrossings",
|
|
table: "SUPPLIER_DEL_STATE",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "PlantId",
|
|
table: "SUPPLIER_DEL_STATE",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialDescription",
|
|
table: "SUPPLIER_DEL_STATE",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialCode",
|
|
table: "SUPPLIER_DEL_STATE",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "DeliveryNumber",
|
|
table: "SUPPLIER_DEL_STATE",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "DataCreateTime",
|
|
table: "SUPPLIER_DEL_STATE",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime2",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "CreateByUser",
|
|
table: "SUPPLIER_DEL_STATE",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "WriteState",
|
|
table: "SUPPLIER_CON_PO",
|
|
type: "bit",
|
|
nullable: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit",
|
|
oldDefaultValue: false);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "VentureType",
|
|
table: "SUPPLIER_CON_PO",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(string),
|
|
oldType: "VARCHAR(50)",
|
|
oldMaxLength: 50,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "VentureSpecific",
|
|
table: "SUPPLIER_CON_PO",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(string),
|
|
oldType: "VARCHAR(255)",
|
|
oldMaxLength: 255,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "SupplierCode",
|
|
table: "SUPPLIER_CON_PO",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "VARCHAR(32)",
|
|
oldMaxLength: 32);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "SerialNumber",
|
|
table: "SUPPLIER_CON_PO",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "VARCHAR(10)",
|
|
oldMaxLength: 10);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_CON_PO",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "NVarchar(500)",
|
|
oldMaxLength: 500,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "ReadState",
|
|
table: "SUPPLIER_CON_PO",
|
|
type: "bit",
|
|
nullable: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit",
|
|
oldDefaultValue: false);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityMeet",
|
|
table: "SUPPLIER_CON_PO",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "DECIMAL(16,5)",
|
|
oldPrecision: 16,
|
|
oldScale: 5);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "PurchaseOrder",
|
|
table: "SUPPLIER_CON_PO",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "VARCHAR(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Measures",
|
|
table: "SUPPLIER_CON_PO",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(string),
|
|
oldType: "VARCHAR(255)",
|
|
oldMaxLength: 255,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "FeedbackResults",
|
|
table: "SUPPLIER_CON_PO",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "VARCHAR(10)",
|
|
oldMaxLength: 10);
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "WriteState",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "bit",
|
|
nullable: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit",
|
|
oldDefaultValue: false);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "VentureType",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(string),
|
|
oldType: "VARCHAR(50)",
|
|
oldMaxLength: 50,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "VentureSpecific",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(string),
|
|
oldType: "VARCHAR(255)",
|
|
oldMaxLength: 255,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "SupplierCode",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "VARCHAR(32)",
|
|
oldMaxLength: 32);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "StartMonth",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "CHAR(7)",
|
|
oldMaxLength: 7);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "NVarchar(500)",
|
|
oldMaxLength: 500,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ReleaseEdition",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "VARCHAR(32)",
|
|
oldMaxLength: 32);
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "ReadState",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "bit",
|
|
nullable: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit",
|
|
oldDefaultValue: false);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityMeet9",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "DECIMAL(16,5)",
|
|
oldPrecision: 16,
|
|
oldScale: 5,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityMeet8",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "DECIMAL(16,5)",
|
|
oldPrecision: 16,
|
|
oldScale: 5,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityMeet7",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "DECIMAL(16,5)",
|
|
oldPrecision: 16,
|
|
oldScale: 5,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityMeet6",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "DECIMAL(16,5)",
|
|
oldPrecision: 16,
|
|
oldScale: 5);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityMeet5",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "DECIMAL(16,5)",
|
|
oldPrecision: 16,
|
|
oldScale: 5);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityMeet4",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "DECIMAL(16,5)",
|
|
oldPrecision: 16,
|
|
oldScale: 5);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityMeet3",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "DECIMAL(16,5)",
|
|
oldPrecision: 16,
|
|
oldScale: 5);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityMeet2",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "DECIMAL(16,5)",
|
|
oldPrecision: 16,
|
|
oldScale: 5);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityMeet12",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "DECIMAL(16,5)",
|
|
oldPrecision: 16,
|
|
oldScale: 5,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityMeet11",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "DECIMAL(16,5)",
|
|
oldPrecision: 16,
|
|
oldScale: 5,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityMeet10",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "DECIMAL(16,5)",
|
|
oldPrecision: 16,
|
|
oldScale: 5,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityMeet1",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "DECIMAL(16,5)",
|
|
oldPrecision: 16,
|
|
oldScale: 5);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "PlantId",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "VARCHAR(64)",
|
|
oldMaxLength: 64);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Measures",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(string),
|
|
oldType: "VARCHAR(255)",
|
|
oldMaxLength: 255,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialCode",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "VARCHAR(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "FeedbackResults",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "VARCHAR(10)",
|
|
oldMaxLength: 10);
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "WriteState",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "bit",
|
|
nullable: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit",
|
|
oldDefaultValue: false);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "VentureType",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(string),
|
|
oldType: "VARCHAR(50)",
|
|
oldMaxLength: 50,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "VentureSpecific",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(string),
|
|
oldType: "VARCHAR(255)",
|
|
oldMaxLength: 255,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "SupplierCode",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "VARCHAR(32)",
|
|
oldMaxLength: 32);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "StartDate",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "CHAR(10)",
|
|
oldMaxLength: 10);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "NVarchar(500)",
|
|
oldMaxLength: 500,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ReleaseEdition",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "VARCHAR(32)",
|
|
oldMaxLength: 32);
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "ReadState",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "bit",
|
|
nullable: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit",
|
|
oldDefaultValue: false);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityMeet9",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "DECIMAL(16,5)",
|
|
oldPrecision: 16,
|
|
oldScale: 5);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityMeet8",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "DECIMAL(16,5)",
|
|
oldPrecision: 16,
|
|
oldScale: 5);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityMeet7",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "DECIMAL(16,5)",
|
|
oldPrecision: 16,
|
|
oldScale: 5);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityMeet6",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "DECIMAL(16,5)",
|
|
oldPrecision: 16,
|
|
oldScale: 5);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityMeet5",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "DECIMAL(16,5)",
|
|
oldPrecision: 16,
|
|
oldScale: 5);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityMeet4",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "DECIMAL(16,5)",
|
|
oldPrecision: 16,
|
|
oldScale: 5);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityMeet31",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "DECIMAL(16,5)",
|
|
oldPrecision: 16,
|
|
oldScale: 5,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityMeet30",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "DECIMAL(16,5)",
|
|
oldPrecision: 16,
|
|
oldScale: 5,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityMeet3",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "DECIMAL(16,5)",
|
|
oldPrecision: 16,
|
|
oldScale: 5);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityMeet29",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "DECIMAL(16,5)",
|
|
oldPrecision: 16,
|
|
oldScale: 5,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityMeet28",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "DECIMAL(16,5)",
|
|
oldPrecision: 16,
|
|
oldScale: 5,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityMeet27",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "DECIMAL(16,5)",
|
|
oldPrecision: 16,
|
|
oldScale: 5,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityMeet26",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "DECIMAL(16,5)",
|
|
oldPrecision: 16,
|
|
oldScale: 5,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityMeet25",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "DECIMAL(16,5)",
|
|
oldPrecision: 16,
|
|
oldScale: 5,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityMeet24",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "DECIMAL(16,5)",
|
|
oldPrecision: 16,
|
|
oldScale: 5,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityMeet23",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "DECIMAL(16,5)",
|
|
oldPrecision: 16,
|
|
oldScale: 5,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityMeet22",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "DECIMAL(16,5)",
|
|
oldPrecision: 16,
|
|
oldScale: 5,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityMeet21",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "DECIMAL(16,5)",
|
|
oldPrecision: 16,
|
|
oldScale: 5,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityMeet20",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "DECIMAL(16,5)",
|
|
oldPrecision: 16,
|
|
oldScale: 5,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityMeet2",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "DECIMAL(16,5)",
|
|
oldPrecision: 16,
|
|
oldScale: 5);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityMeet19",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "DECIMAL(16,5)",
|
|
oldPrecision: 16,
|
|
oldScale: 5,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityMeet18",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "DECIMAL(16,5)",
|
|
oldPrecision: 16,
|
|
oldScale: 5,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityMeet17",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "DECIMAL(16,5)",
|
|
oldPrecision: 16,
|
|
oldScale: 5,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityMeet16",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "DECIMAL(16,5)",
|
|
oldPrecision: 16,
|
|
oldScale: 5,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityMeet15",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "DECIMAL(16,5)",
|
|
oldPrecision: 16,
|
|
oldScale: 5,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityMeet14",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "DECIMAL(16,5)",
|
|
oldPrecision: 16,
|
|
oldScale: 5,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityMeet13",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "DECIMAL(16,5)",
|
|
oldPrecision: 16,
|
|
oldScale: 5,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityMeet12",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "DECIMAL(16,5)",
|
|
oldPrecision: 16,
|
|
oldScale: 5);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityMeet11",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "DECIMAL(16,5)",
|
|
oldPrecision: 16,
|
|
oldScale: 5);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityMeet10",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "DECIMAL(16,5)",
|
|
oldPrecision: 16,
|
|
oldScale: 5);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "QuantityMeet1",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "DECIMAL(16,5)",
|
|
oldPrecision: 16,
|
|
oldScale: 5);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "PlantId",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "VARCHAR(64)",
|
|
oldMaxLength: 64);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Measures",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(string),
|
|
oldType: "VARCHAR(255)",
|
|
oldMaxLength: 255,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MaterialCode",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "VARCHAR(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "FeedbackResults",
|
|
table: "SUPPLIER_CON_DATE",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "VARCHAR(10)",
|
|
oldMaxLength: 10);
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "WriteState",
|
|
table: "SUPPLIER_BOM",
|
|
type: "bit",
|
|
nullable: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit",
|
|
oldDefaultValue: false);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Remark",
|
|
table: "SUPPLIER_BOM",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "NVarchar(500)",
|
|
oldMaxLength: 500,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "ReadState",
|
|
table: "SUPPLIER_BOM",
|
|
type: "bit",
|
|
nullable: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit",
|
|
oldDefaultValue: false);
|
|
}
|
|
}
|
|
}
|
|
|