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.
 
 
 

267 lines
9.4 KiB

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TaskManager.EntityFramework.Migrations
{
/// <inheritdoc />
public partial class z202506270002 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "ProductionDate",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS",
type: "nvarchar(max)",
nullable: false,
oldClrType: typeof(string),
oldType: "CHAR(16)",
oldMaxLength: 16);
migrationBuilder.AlterColumn<string>(
name: "CalibrationDueDays",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS",
type: "VARCHAR(12)",
maxLength: 12,
nullable: false,
oldClrType: typeof(string),
oldType: "CHAR(12)",
oldMaxLength: 12);
migrationBuilder.AlterColumn<string>(
name: "CalibrationDate",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS",
type: "nvarchar(max)",
nullable: false,
oldClrType: typeof(string),
oldType: "CHAR(19)",
oldMaxLength: 19);
migrationBuilder.AlterColumn<DateTime>(
name: "ProductionDate",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_DT",
type: "datetime2",
nullable: false,
oldClrType: typeof(string),
oldType: "CHAR(16)",
oldMaxLength: 16);
migrationBuilder.AlterColumn<string>(
name: "CalibrationDueDays",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_DT",
type: "VARCHAR(12)",
maxLength: 12,
nullable: false,
oldClrType: typeof(string),
oldType: "CHAR(12)",
oldMaxLength: 12);
migrationBuilder.AlterColumn<DateTime>(
name: "CalibrationDate",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_DT",
type: "datetime2",
nullable: false,
oldClrType: typeof(string),
oldType: "CHAR(19)",
oldMaxLength: 19);
migrationBuilder.AlterColumn<DateTime>(
name: "ProductionDate",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT",
type: "datetime2",
nullable: false,
oldClrType: typeof(string),
oldType: "CHAR(16)",
oldMaxLength: 16);
migrationBuilder.AlterColumn<string>(
name: "DeviceStatus",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT",
type: "VARCHAR(30)",
maxLength: 30,
nullable: false,
oldClrType: typeof(string),
oldType: "VARCHAR(16)",
oldMaxLength: 16);
migrationBuilder.AlterColumn<string>(
name: "DesignLifeValue",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
oldClrType: typeof(string),
oldType: "VARCHAR(16)",
oldMaxLength: 16);
migrationBuilder.AlterColumn<string>(
name: "DesignLifeUnits",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
oldClrType: typeof(string),
oldType: "VARCHAR(16)",
oldMaxLength: 16);
migrationBuilder.AlterColumn<string>(
name: "CurrentUsageCount",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
oldClrType: typeof(string),
oldType: "VARCHAR(16)",
oldMaxLength: 16);
migrationBuilder.AlterColumn<string>(
name: "CalibrationDueDays",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
oldClrType: typeof(string),
oldType: "CHAR(12)",
oldMaxLength: 12);
migrationBuilder.AlterColumn<DateTime>(
name: "CalibrationDate",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT",
type: "datetime2",
nullable: false,
oldClrType: typeof(string),
oldType: "CHAR(19)",
oldMaxLength: 19);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "ProductionDate",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS",
type: "CHAR(16)",
maxLength: 16,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn<string>(
name: "CalibrationDueDays",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS",
type: "CHAR(12)",
maxLength: 12,
nullable: false,
oldClrType: typeof(string),
oldType: "VARCHAR(12)",
oldMaxLength: 12);
migrationBuilder.AlterColumn<string>(
name: "CalibrationDate",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS",
type: "CHAR(19)",
maxLength: 19,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn<string>(
name: "ProductionDate",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_DT",
type: "CHAR(16)",
maxLength: 16,
nullable: false,
oldClrType: typeof(DateTime),
oldType: "datetime2");
migrationBuilder.AlterColumn<string>(
name: "CalibrationDueDays",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_DT",
type: "CHAR(12)",
maxLength: 12,
nullable: false,
oldClrType: typeof(string),
oldType: "VARCHAR(12)",
oldMaxLength: 12);
migrationBuilder.AlterColumn<string>(
name: "CalibrationDate",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_DT",
type: "CHAR(19)",
maxLength: 19,
nullable: false,
oldClrType: typeof(DateTime),
oldType: "datetime2");
migrationBuilder.AlterColumn<string>(
name: "ProductionDate",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT",
type: "CHAR(16)",
maxLength: 16,
nullable: false,
oldClrType: typeof(DateTime),
oldType: "datetime2");
migrationBuilder.AlterColumn<string>(
name: "DeviceStatus",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT",
type: "VARCHAR(16)",
maxLength: 16,
nullable: false,
oldClrType: typeof(string),
oldType: "VARCHAR(30)",
oldMaxLength: 30);
migrationBuilder.AlterColumn<string>(
name: "DesignLifeValue",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT",
type: "VARCHAR(16)",
maxLength: 16,
nullable: false,
oldClrType: typeof(string),
oldType: "VARCHAR(32)",
oldMaxLength: 32);
migrationBuilder.AlterColumn<string>(
name: "DesignLifeUnits",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT",
type: "VARCHAR(16)",
maxLength: 16,
nullable: false,
oldClrType: typeof(string),
oldType: "VARCHAR(32)",
oldMaxLength: 32);
migrationBuilder.AlterColumn<string>(
name: "CurrentUsageCount",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT",
type: "VARCHAR(16)",
maxLength: 16,
nullable: false,
oldClrType: typeof(string),
oldType: "VARCHAR(32)",
oldMaxLength: 32);
migrationBuilder.AlterColumn<string>(
name: "CalibrationDueDays",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT",
type: "CHAR(12)",
maxLength: 12,
nullable: false,
oldClrType: typeof(string),
oldType: "VARCHAR(32)",
oldMaxLength: 32);
migrationBuilder.AlterColumn<string>(
name: "CalibrationDate",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT",
type: "CHAR(19)",
maxLength: 19,
nullable: false,
oldClrType: typeof(DateTime),
oldType: "datetime2");
}
}
}