using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TaskManager.EntityFramework.Migrations
{
///
public partial class z20250529 : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn(
name: "ReadState",
table: "TaskLogs",
type: "bit",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn(
name: "TaskId",
table: "TaskLogs",
type: "uniqueidentifier",
nullable: false,
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"));
migrationBuilder.AddColumn(
name: "WriteState",
table: "TaskLogs",
type: "bit",
nullable: false,
defaultValue: false);
migrationBuilder.AlterColumn(
name: "WriteState",
table: "SUPPLIER_SINV_DATA",
type: "bit",
nullable: false,
defaultValue: false,
oldClrType: typeof(bool),
oldType: "bit");
migrationBuilder.AlterColumn(
name: "SupplieryxqDate",
table: "SUPPLIER_SINV_DATA",
type: "CHAR(19)",
maxLength: 19,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "SupplierName",
table: "SUPPLIER_SINV_DATA",
type: "VARCHAR(64)",
maxLength: 64,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "SupplierCode",
table: "SUPPLIER_SINV_DATA",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "SupplierBatch",
table: "SUPPLIER_SINV_DATA",
type: "VARCHAR(64)",
maxLength: 64,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "SafetyStock",
table: "SUPPLIER_SINV_DATA",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: false,
oldClrType: typeof(int),
oldType: "int");
migrationBuilder.AlterColumn(
name: "Remark",
table: "SUPPLIER_SINV_DATA",
type: "NVarchar(500)",
maxLength: 500,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "ReadState",
table: "SUPPLIER_SINV_DATA",
type: "bit",
nullable: false,
defaultValue: false,
oldClrType: typeof(bool),
oldType: "bit");
migrationBuilder.AlterColumn(
name: "QuantityPlan",
table: "SUPPLIER_SINV_DATA",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: false,
oldClrType: typeof(int),
oldType: "int");
migrationBuilder.AlterColumn(
name: "QuantityCurrent",
table: "SUPPLIER_SINV_DATA",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: false,
oldClrType: typeof(int),
oldType: "int");
migrationBuilder.AlterColumn(
name: "ProductionCycle",
table: "SUPPLIER_SINV_DATA",
type: "VARCHAR(10)",
maxLength: 10,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "MaterialType",
table: "SUPPLIER_SINV_DATA",
type: "VARCHAR(20)",
maxLength: 20,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "MaterialDescription",
table: "SUPPLIER_SINV_DATA",
type: "VARCHAR(100)",
maxLength: 100,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "MaterialCode",
table: "SUPPLIER_SINV_DATA",
type: "VARCHAR(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "InventoryStatus",
table: "SUPPLIER_SINV_DATA",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "DataUpdateTime",
table: "SUPPLIER_SINV_DATA",
type: "CHAR(19)",
maxLength: 19,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "UpdateTime",
table: "SUPPLIER_SA_WEEK",
type: "datetime2",
maxLength: 50,
nullable: true,
oldClrType: typeof(DateTime),
oldType: "datetime2");
migrationBuilder.AlterColumn(
name: "UpdateByUser",
table: "SUPPLIER_SA_WEEK",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "SerialNumber",
table: "SUPPLIER_SA_WEEK",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "ScheduleAgreement",
table: "SUPPLIER_SA_WEEK",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "Remark",
table: "SUPPLIER_SA_WEEK",
type: "nvarchar(max)",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "QuantityDemand",
table: "SUPPLIER_SA_WEEK",
type: "decimal(18,2)",
nullable: true,
oldClrType: typeof(int),
oldType: "int");
migrationBuilder.AlterColumn(
name: "PurchasingGroup",
table: "SUPPLIER_SA_WEEK",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "PlantId",
table: "SUPPLIER_SA_WEEK",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "MaterialDescription",
table: "SUPPLIER_SA_WEEK",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "MaterialCode",
table: "SUPPLIER_SA_WEEK",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "DateReceived",
table: "SUPPLIER_SA_WEEK",
type: "datetime2",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "CreateTime",
table: "SUPPLIER_SA_WEEK",
type: "datetime2",
maxLength: 50,
nullable: true,
oldClrType: typeof(DateTime),
oldType: "datetime2");
migrationBuilder.AlterColumn(
name: "CreateByUser",
table: "SUPPLIER_SA_WEEK",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "UpdateTime",
table: "SUPPLIER_RETURN",
type: "datetime2",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "datetime2");
migrationBuilder.AlterColumn(
name: "UpdateByUser",
table: "SUPPLIER_RETURN",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "SerialSrate",
table: "SUPPLIER_RETURN",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "SerialNumber",
table: "SUPPLIER_RETURN",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "ReturnType",
table: "SUPPLIER_RETURN",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "ReturnReason",
table: "SUPPLIER_RETURN",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "ReturnNumber",
table: "SUPPLIER_RETURN",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "Remark",
table: "SUPPLIER_RETURN",
type: "nvarchar(max)",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "QuantityDelivery",
table: "SUPPLIER_RETURN",
type: "decimal(18,2)",
nullable: false,
oldClrType: typeof(int),
oldType: "int");
migrationBuilder.AlterColumn(
name: "Plant",
table: "SUPPLIER_RETURN",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "PickUpLocation",
table: "SUPPLIER_RETURN",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "PickUpCrossings",
table: "SUPPLIER_RETURN",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "MaterialDescription",
table: "SUPPLIER_RETURN",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "MaterialCode",
table: "SUPPLIER_RETURN",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "LotNumber",
table: "SUPPLIER_RETURN",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "Judge",
table: "SUPPLIER_RETURN",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "Feedback",
table: "SUPPLIER_RETURN",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "DemandPickupTime",
table: "SUPPLIER_RETURN",
type: "datetime2",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "CreateTime",
table: "SUPPLIER_RETURN",
type: "datetime2",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "datetime2");
migrationBuilder.AlterColumn(
name: "CreateByUser",
table: "SUPPLIER_RETURN",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "Vin",
table: "SUPPLIER_PRO_TSCHEDUL",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "UpdateByUser",
table: "SUPPLIER_PRO_TSCHEDUL",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "Remark",
table: "SUPPLIER_PRO_TSCHEDUL",
type: "nvarchar(max)",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "ProductionLineName",
table: "SUPPLIER_PRO_TSCHEDUL",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "ProductionLineId",
table: "SUPPLIER_PRO_TSCHEDUL",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "OnLineTime",
table: "SUPPLIER_PRO_TSCHEDUL",
type: "datetime2",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "Models",
table: "SUPPLIER_PRO_TSCHEDUL",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "MaterialDescription",
table: "SUPPLIER_PRO_TSCHEDUL",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "MaterialCode",
table: "SUPPLIER_PRO_TSCHEDUL",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "FinalWorkshop",
table: "SUPPLIER_PRO_TSCHEDUL",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "FinalOnLineTime",
table: "SUPPLIER_PRO_TSCHEDUL",
type: "datetime2",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "CreateByUser",
table: "SUPPLIER_PRO_TSCHEDUL",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
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(
name: "WriteState",
table: "SUPPLIER_PRO_SCHEDULING",
type: "bit",
nullable: false,
defaultValue: false,
oldClrType: typeof(bool),
oldType: "bit");
migrationBuilder.AlterColumn(
name: "Remark",
table: "SUPPLIER_PRO_SCHEDULING",
type: "NVarchar(500)",
maxLength: 500,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "ReadState",
table: "SUPPLIER_PRO_SCHEDULING",
type: "bit",
nullable: false,
defaultValue: false,
oldClrType: typeof(bool),
oldType: "bit");
migrationBuilder.AddColumn(
name: "ActualBeginTime",
table: "SUPPLIER_PRO_SCHEDULING",
type: "CHAR(19)",
maxLength: 19,
nullable: true);
migrationBuilder.AddColumn(
name: "ActualEndTime",
table: "SUPPLIER_PRO_SCHEDULING",
type: "CHAR(19)",
maxLength: 19,
nullable: true);
migrationBuilder.AddColumn(
name: "CheryProductName",
table: "SUPPLIER_PRO_SCHEDULING",
type: "VARCHAR(100)",
maxLength: 100,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "CheryProductNo",
table: "SUPPLIER_PRO_SCHEDULING",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "ManufactureInputNum",
table: "SUPPLIER_PRO_SCHEDULING",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: true);
migrationBuilder.AddColumn(
name: "ManufactureNo",
table: "SUPPLIER_PRO_SCHEDULING",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "ManufactureNum",
table: "SUPPLIER_PRO_SCHEDULING",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: false,
defaultValue: 0m);
migrationBuilder.AddColumn(
name: "ManufactureOutputNum",
table: "SUPPLIER_PRO_SCHEDULING",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: false,
defaultValue: 0m);
migrationBuilder.AddColumn(
name: "PlanBeginTime",
table: "SUPPLIER_PRO_SCHEDULING",
type: "CHAR(19)",
maxLength: 19,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "PlanEndTime",
table: "SUPPLIER_PRO_SCHEDULING",
type: "CHAR(19)",
maxLength: 19,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "PlanNo",
table: "SUPPLIER_PRO_SCHEDULING",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "PlanStatus",
table: "SUPPLIER_PRO_SCHEDULING",
type: "CHAR(1)",
maxLength: 1,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "PlantId",
table: "SUPPLIER_PRO_SCHEDULING",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "PlantName",
table: "SUPPLIER_PRO_SCHEDULING",
type: "VARCHAR(64)",
maxLength: 64,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "ProductBatchNo",
table: "SUPPLIER_PRO_SCHEDULING",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "SupplierCode",
table: "SUPPLIER_PRO_SCHEDULING",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "SupplierName",
table: "SUPPLIER_PRO_SCHEDULING",
type: "VARCHAR(64)",
maxLength: 64,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "VendorProductName",
table: "SUPPLIER_PRO_SCHEDULING",
type: "VARCHAR(100)",
maxLength: 100,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "VendorProductNo",
table: "SUPPLIER_PRO_SCHEDULING",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "");
migrationBuilder.AlterColumn(
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(
name: "UpdateByUser",
table: "SUPPLIER_PRO_PLANING",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "Type",
table: "SUPPLIER_PRO_PLANING",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "StartMonth",
table: "SUPPLIER_PRO_PLANING",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "Remark",
table: "SUPPLIER_PRO_PLANING",
type: "nvarchar(max)",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "ReleaseEdition",
table: "SUPPLIER_PRO_PLANING",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "Plant",
table: "SUPPLIER_PRO_PLANING",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "Pattern",
table: "SUPPLIER_PRO_PLANING",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "Models",
table: "SUPPLIER_PRO_PLANING",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "MaterialCode",
table: "SUPPLIER_PRO_PLANING",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
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(
name: "CreateByUser",
table: "SUPPLIER_PRO_PLANING",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "Assembly",
table: "SUPPLIER_PRO_PLANING",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "WriteState",
table: "SUPPLIER_PRO_MATERIAL_STOCK",
type: "bit",
nullable: false,
defaultValue: false,
oldClrType: typeof(bool),
oldType: "bit");
migrationBuilder.AlterColumn(
name: "Remark",
table: "SUPPLIER_PRO_MATERIAL_STOCK",
type: "NVarchar(500)",
maxLength: 500,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "ReadState",
table: "SUPPLIER_PRO_MATERIAL_STOCK",
type: "bit",
nullable: false,
defaultValue: false,
oldClrType: typeof(bool),
oldType: "bit");
migrationBuilder.AddColumn(
name: "CheckNo",
table: "SUPPLIER_PRO_MATERIAL_STOCK",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "CheckResult",
table: "SUPPLIER_PRO_MATERIAL_STOCK",
type: "CHAR(2)",
maxLength: 2,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "CheckTime",
table: "SUPPLIER_PRO_MATERIAL_STOCK",
type: "CHAR(19)",
maxLength: 19,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "ComponentCode",
table: "SUPPLIER_PRO_MATERIAL_STOCK",
type: "VARCHAR(32)",
maxLength: 32,
nullable: true);
migrationBuilder.AddColumn(
name: "ComponentName",
table: "SUPPLIER_PRO_MATERIAL_STOCK",
type: "VARCHAR(32)",
maxLength: 32,
nullable: true);
migrationBuilder.AddColumn(
name: "DeadLine",
table: "SUPPLIER_PRO_MATERIAL_STOCK",
type: "VARCHAR(10)",
maxLength: 10,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "DeviceCode",
table: "SUPPLIER_PRO_MATERIAL_STOCK",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "DeviceName",
table: "SUPPLIER_PRO_MATERIAL_STOCK",
type: "VARCHAR(100)",
maxLength: 100,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "EmpCode",
table: "SUPPLIER_PRO_MATERIAL_STOCK",
type: "VARCHAR(16)",
maxLength: 16,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "EmpName",
table: "SUPPLIER_PRO_MATERIAL_STOCK",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "FeatureLower",
table: "SUPPLIER_PRO_MATERIAL_STOCK",
type: "VARCHAR(64)",
maxLength: 64,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "FeatureName",
table: "SUPPLIER_PRO_MATERIAL_STOCK",
type: "VARCHAR(100)",
maxLength: 100,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "FeatureUnit",
table: "SUPPLIER_PRO_MATERIAL_STOCK",
type: "VARCHAR(100)",
maxLength: 100,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "FeatureUpper",
table: "SUPPLIER_PRO_MATERIAL_STOCK",
type: "VARCHAR(64)",
maxLength: 64,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "FeatureValue",
table: "SUPPLIER_PRO_MATERIAL_STOCK",
type: "VARCHAR(64)",
maxLength: 64,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "LimitUpdateTime",
table: "SUPPLIER_PRO_MATERIAL_STOCK",
type: "CHAR(19)",
maxLength: 19,
nullable: true);
migrationBuilder.AddColumn(
name: "SamplingRate",
table: "SUPPLIER_PRO_MATERIAL_STOCK",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: true);
migrationBuilder.AddColumn(
name: "StandardValue",
table: "SUPPLIER_PRO_MATERIAL_STOCK",
type: "VARCHAR(100)",
maxLength: 100,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "SubBatchNo",
table: "SUPPLIER_PRO_MATERIAL_STOCK",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "SubBatchNum",
table: "SUPPLIER_PRO_MATERIAL_STOCK",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: false,
defaultValue: 0m);
migrationBuilder.AddColumn(
name: "SubBatchSn",
table: "SUPPLIER_PRO_MATERIAL_STOCK",
type: "VARCHAR(64)",
maxLength: 64,
nullable: true);
migrationBuilder.AddColumn(
name: "SubSupplierAddress",
table: "SUPPLIER_PRO_MATERIAL_STOCK",
type: "VARCHAR(100)",
maxLength: 100,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "SubSupplierCode",
table: "SUPPLIER_PRO_MATERIAL_STOCK",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "SubSupplierName",
table: "SUPPLIER_PRO_MATERIAL_STOCK",
type: "VARCHAR(100)",
maxLength: 100,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "SupplierCode",
table: "SUPPLIER_PRO_MATERIAL_STOCK",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "SupplierName",
table: "SUPPLIER_PRO_MATERIAL_STOCK",
type: "VARCHAR(64)",
maxLength: 64,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "SupplierSubCode",
table: "SUPPLIER_PRO_MATERIAL_STOCK",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "SupplierSubName",
table: "SUPPLIER_PRO_MATERIAL_STOCK",
type: "VARCHAR(100)",
maxLength: 100,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "VendorFieldCode",
table: "SUPPLIER_PRO_MATERIAL_STOCK",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "VendorFieldDesc",
table: "SUPPLIER_PRO_MATERIAL_STOCK",
type: "VARCHAR(64)",
maxLength: 64,
nullable: true);
migrationBuilder.AlterColumn(
name: "Vin",
table: "SUPPLIER_PRO_HSCHEDUL",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "UpdateByUser",
table: "SUPPLIER_PRO_HSCHEDUL",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "Remark",
table: "SUPPLIER_PRO_HSCHEDUL",
type: "nvarchar(max)",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "ProductionType",
table: "SUPPLIER_PRO_HSCHEDUL",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "ProductionLineName",
table: "SUPPLIER_PRO_HSCHEDUL",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "ProductionLineId",
table: "SUPPLIER_PRO_HSCHEDUL",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "OnLineTime",
table: "SUPPLIER_PRO_HSCHEDUL",
type: "datetime2",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "Models",
table: "SUPPLIER_PRO_HSCHEDUL",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "MaterialDescription",
table: "SUPPLIER_PRO_HSCHEDUL",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "MaterialCode",
table: "SUPPLIER_PRO_HSCHEDUL",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "CreateByUser",
table: "SUPPLIER_PRO_HSCHEDUL",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "WriteState",
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
type: "bit",
nullable: false,
defaultValue: false,
oldClrType: typeof(bool),
oldType: "bit");
migrationBuilder.AlterColumn(
name: "Remark",
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
type: "NVarchar(500)",
maxLength: 500,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "ReadState",
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
type: "bit",
nullable: false,
defaultValue: false,
oldClrType: typeof(bool),
oldType: "bit");
migrationBuilder.AddColumn(
name: "AcceptableNumber",
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: false,
defaultValue: 0m);
migrationBuilder.AddColumn(
name: "CheryProductName",
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
type: "VARCHAR(100)",
maxLength: 100,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "CheryProductNo",
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "DateTime",
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
type: "CHAR(19)",
maxLength: 19,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "DefectiveNumber",
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: false,
defaultValue: 0m);
migrationBuilder.AddColumn(
name: "ManufactureNo",
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "OncePassRateRealValue",
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: false,
defaultValue: 0m);
migrationBuilder.AddColumn(
name: "OncePassRateTagValue",
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: false,
defaultValue: 0m);
migrationBuilder.AddColumn(
name: "PlantId",
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "PlantName",
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
type: "VARCHAR(64)",
maxLength: 64,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "ProductBatchNo",
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "ProductionLineId",
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
type: "nvarchar(50)",
maxLength: 50,
nullable: true);
migrationBuilder.AddColumn(
name: "ProductionLineName",
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
type: "nvarchar(50)",
maxLength: 50,
nullable: true);
migrationBuilder.AddColumn(
name: "StatisticalTime",
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
type: "CHAR(19)",
maxLength: 19,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "SupplierCode",
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "SupplierName",
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
type: "VARCHAR(64)",
maxLength: 64,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "VendorProductName",
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
type: "VARCHAR(100)",
maxLength: 100,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "VendorProductNo",
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "WorkOrderNumber",
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: false,
defaultValue: 0m);
migrationBuilder.AddColumn(
name: "WorkShift",
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
type: "VARCHAR(10)",
maxLength: 10,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "WorkshopId",
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
type: "nvarchar(50)",
maxLength: 50,
nullable: true);
migrationBuilder.AddColumn(
name: "WorkshopName",
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
type: "nvarchar(50)",
maxLength: 50,
nullable: true);
migrationBuilder.AlterColumn(
name: "WriteState",
table: "SUPPLIER_PRO_DATA",
type: "bit",
nullable: false,
defaultValue: false,
oldClrType: typeof(bool),
oldType: "bit");
migrationBuilder.AlterColumn(
name: "Remark",
table: "SUPPLIER_PRO_DATA",
type: "NVarchar(500)",
maxLength: 500,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "ReadState",
table: "SUPPLIER_PRO_DATA",
type: "bit",
nullable: false,
defaultValue: false,
oldClrType: typeof(bool),
oldType: "bit");
migrationBuilder.AddColumn(
name: "CheryProductName",
table: "SUPPLIER_PRO_DATA",
type: "VARCHAR(100)",
maxLength: 100,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "CheryProductNo",
table: "SUPPLIER_PRO_DATA",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "CheryProductSn",
table: "SUPPLIER_PRO_DATA",
type: "VARCHAR(64)",
maxLength: 64,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "ChildHardwareRevision",
table: "SUPPLIER_PRO_DATA",
type: "VARCHAR(64)",
maxLength: 64,
nullable: true);
migrationBuilder.AddColumn(
name: "ChildPackageInfo",
table: "SUPPLIER_PRO_DATA",
type: "VARCHAR(64)",
maxLength: 64,
nullable: true);
migrationBuilder.AddColumn(
name: "ChildSoftwareRevision",
table: "SUPPLIER_PRO_DATA",
type: "VARCHAR(64)",
maxLength: 64,
nullable: true);
migrationBuilder.AddColumn(
name: "ChildSource",
table: "SUPPLIER_PRO_DATA",
type: "VARCHAR(64)",
maxLength: 64,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "CollectTime",
table: "SUPPLIER_PRO_DATA",
type: "CHAR(19)",
maxLength: 19,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "DateTime",
table: "SUPPLIER_PRO_DATA",
type: "CHAR(16)",
maxLength: 16,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "EmpCode",
table: "SUPPLIER_PRO_DATA",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "EmpName",
table: "SUPPLIER_PRO_DATA",
type: "VARCHAR(64)",
maxLength: 64,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "FinalQualityStatus",
table: "SUPPLIER_PRO_DATA",
type: "VARCHAR(8)",
maxLength: 8,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "InstrumentQualityStatus",
table: "SUPPLIER_PRO_DATA",
type: "VARCHAR(8)",
maxLength: 8,
nullable: true);
migrationBuilder.AddColumn(
name: "ManualQualityStatus",
table: "SUPPLIER_PRO_DATA",
type: "VARCHAR(8)",
maxLength: 8,
nullable: true);
migrationBuilder.AddColumn(
name: "ManufactureNo",
table: "SUPPLIER_PRO_DATA",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "MaterialInputTime",
table: "SUPPLIER_PRO_DATA",
type: "CHAR(19)",
maxLength: 19,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "MaterialOutputTime",
table: "SUPPLIER_PRO_DATA",
type: "CHAR(19)",
maxLength: 19,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "ParentHardwareRevision",
table: "SUPPLIER_PRO_DATA",
type: "VARCHAR(64)",
maxLength: 64,
nullable: true);
migrationBuilder.AddColumn(
name: "ParentSoftwareRevision",
table: "SUPPLIER_PRO_DATA",
type: "VARCHAR(64)",
maxLength: 64,
nullable: true);
migrationBuilder.AddColumn(
name: "PlantId",
table: "SUPPLIER_PRO_DATA",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "PlantName",
table: "SUPPLIER_PRO_DATA",
type: "VARCHAR(64)",
maxLength: 64,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "ProductBatchNo",
table: "SUPPLIER_PRO_DATA",
type: "VARCHAR(64)",
maxLength: 64,
nullable: true);
migrationBuilder.AddColumn(
name: "ProductionLineId",
table: "SUPPLIER_PRO_DATA",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "ProductionLineName",
table: "SUPPLIER_PRO_DATA",
type: "VARCHAR(100)",
maxLength: 100,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "StationId",
table: "SUPPLIER_PRO_DATA",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "StationName",
table: "SUPPLIER_PRO_DATA",
type: "VARCHAR(64)",
maxLength: 64,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "SubBatchNo",
table: "SUPPLIER_PRO_DATA",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "SubProdName",
table: "SUPPLIER_PRO_DATA",
type: "VARCHAR(100)",
maxLength: 100,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "SubProdNo",
table: "SUPPLIER_PRO_DATA",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "SubProdNum",
table: "SUPPLIER_PRO_DATA",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: false,
defaultValue: 0m);
migrationBuilder.AddColumn(
name: "SubProdSn",
table: "SUPPLIER_PRO_DATA",
type: "VARCHAR(64)",
maxLength: 64,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "SubSupplierCode",
table: "SUPPLIER_PRO_DATA",
type: "VARCHAR(32)",
maxLength: 32,
nullable: true);
migrationBuilder.AddColumn(
name: "SubSupplierName",
table: "SUPPLIER_PRO_DATA",
type: "VARCHAR(100)",
maxLength: 100,
nullable: true);
migrationBuilder.AddColumn(
name: "SupplierCode",
table: "SUPPLIER_PRO_DATA",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "SupplierName",
table: "SUPPLIER_PRO_DATA",
type: "VARCHAR(64)",
maxLength: 64,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "VendorFieldName",
table: "SUPPLIER_PRO_DATA",
type: "VARCHAR(100)",
maxLength: 100,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "VendorFieldNum",
table: "SUPPLIER_PRO_DATA",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "VendorProductBatch",
table: "SUPPLIER_PRO_DATA",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "VendorProductName",
table: "SUPPLIER_PRO_DATA",
type: "VARCHAR(100)",
maxLength: 100,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "VendorProductNo",
table: "SUPPLIER_PRO_DATA",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "VendorProductSn",
table: "SUPPLIER_PRO_DATA",
type: "VARCHAR(64)",
maxLength: 64,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "WorkShift",
table: "SUPPLIER_PRO_DATA",
type: "VARCHAR(10)",
maxLength: 10,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "WorkshopId",
table: "SUPPLIER_PRO_DATA",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "WorkshopName",
table: "SUPPLIER_PRO_DATA",
type: "VARCHAR(64)",
maxLength: 64,
nullable: false,
defaultValue: "");
migrationBuilder.AlterColumn(
name: "Vin",
table: "SUPPLIER_PRO_CSCHEDUL",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "UpdateTime",
table: "SUPPLIER_PRO_CSCHEDUL",
type: "datetime2",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "datetime2");
migrationBuilder.AlterColumn(
name: "UpdateByUser",
table: "SUPPLIER_PRO_CSCHEDUL",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "SortTime",
table: "SUPPLIER_PRO_CSCHEDUL",
type: "nvarchar(8)",
maxLength: 8,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "SortDate",
table: "SUPPLIER_PRO_CSCHEDUL",
type: "datetime2",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "Remark",
table: "SUPPLIER_PRO_CSCHEDUL",
type: "nvarchar(max)",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "ProductionLineName",
table: "SUPPLIER_PRO_CSCHEDUL",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "ProductionLineId",
table: "SUPPLIER_PRO_CSCHEDUL",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "Plant",
table: "SUPPLIER_PRO_CSCHEDUL",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "OnLineTime",
table: "SUPPLIER_PRO_CSCHEDUL",
type: "nvarchar(8)",
maxLength: 8,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "OnLineDate",
table: "SUPPLIER_PRO_CSCHEDUL",
type: "datetime2",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "MotorMaterialCode",
table: "SUPPLIER_PRO_CSCHEDUL",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "Models",
table: "SUPPLIER_PRO_CSCHEDUL",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "ModelCategory",
table: "SUPPLIER_PRO_CSCHEDUL",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "MaterialDescription",
table: "SUPPLIER_PRO_CSCHEDUL",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "MaterialCode",
table: "SUPPLIER_PRO_CSCHEDUL",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "CreateTime",
table: "SUPPLIER_PRO_CSCHEDUL",
type: "datetime2",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "datetime2");
migrationBuilder.AlterColumn(
name: "CreateByUser",
table: "SUPPLIER_PRO_CSCHEDUL",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "AssemblyMaterialCode",
table: "SUPPLIER_PRO_CSCHEDUL",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "WriteState",
table: "SUPPLIER_PRO_CPS",
type: "bit",
nullable: false,
defaultValue: false,
oldClrType: typeof(bool),
oldType: "bit");
migrationBuilder.AlterColumn(
name: "Remark",
table: "SUPPLIER_PRO_CPS",
type: "NVarchar(500)",
maxLength: 500,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "ReadState",
table: "SUPPLIER_PRO_CPS",
type: "bit",
nullable: false,
defaultValue: false,
oldClrType: typeof(bool),
oldType: "bit");
migrationBuilder.AddColumn(
name: "CarrierCode",
table: "SUPPLIER_PRO_CPS",
type: "VARCHAR(32)",
maxLength: 32,
nullable: true);
migrationBuilder.AddColumn(
name: "Cc",
table: "SUPPLIER_PRO_CPS",
type: "CHAR(1)",
maxLength: 1,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "Characteristic",
table: "SUPPLIER_PRO_CPS",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "CheckMode",
table: "SUPPLIER_PRO_CPS",
type: "VARCHAR(10)",
maxLength: 10,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "CheckResult",
table: "SUPPLIER_PRO_CPS",
type: "VARCHAR(8)",
maxLength: 8,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "CheryProductName",
table: "SUPPLIER_PRO_CPS",
type: "VARCHAR(100)",
maxLength: 100,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "CheryProductNo",
table: "SUPPLIER_PRO_CPS",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "CheryProductSn",
table: "SUPPLIER_PRO_CPS",
type: "VARCHAR(64)",
maxLength: 64,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "CollectTime",
table: "SUPPLIER_PRO_CPS",
type: "CHAR(19)",
maxLength: 19,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "DecimalValue",
table: "SUPPLIER_PRO_CPS",
type: "DECIMAL(26,15)",
precision: 26,
scale: 15,
nullable: false,
defaultValue: 0m);
migrationBuilder.AddColumn(
name: "DetectionMode",
table: "SUPPLIER_PRO_CPS",
type: "VARCHAR(20)",
maxLength: 20,
nullable: true);
migrationBuilder.AddColumn(
name: "DeviceCode",
table: "SUPPLIER_PRO_CPS",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "DeviceName",
table: "SUPPLIER_PRO_CPS",
type: "VARCHAR(100)",
maxLength: 100,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "EmpCode",
table: "SUPPLIER_PRO_CPS",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "EmpName",
table: "SUPPLIER_PRO_CPS",
type: "VARCHAR(10)",
maxLength: 10,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "FttQty",
table: "SUPPLIER_PRO_CPS",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: false,
defaultValue: 0m);
migrationBuilder.AddColumn