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