using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace TaskManager.EntityFramework.Migrations { /// public partial class z202507030001z : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "CalibrationDate", table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", type: "datetime2", nullable: false, oldClrType: typeof(string), oldType: "nvarchar(max)"); migrationBuilder.AlterColumn( name: "LimitUpdateTime", table: "SUPPLIER_PRO_MATERIAL_STOCK_LOGS", type: "VARCHAR(19)", maxLength: 19, nullable: true, oldClrType: typeof(string), oldType: "CHAR(19)", oldMaxLength: 19, oldNullable: true); migrationBuilder.AlterColumn( name: "DeadLine", table: "SUPPLIER_PRO_MATERIAL_STOCK_LOGS", type: "VARCHAR(30)", maxLength: 30, nullable: false, oldClrType: typeof(string), oldType: "VARCHAR(10)", oldMaxLength: 10); migrationBuilder.AlterColumn( name: "LimitUpdateTime", table: "SUPPLIER_PRO_MATERIAL_STOCK", type: "varCHAR(19)", maxLength: 19, nullable: true, oldClrType: typeof(string), oldType: "CHAR(19)", oldMaxLength: 19, oldNullable: true); migrationBuilder.AlterColumn( name: "MaterialOutputTime", table: "SUPPLIER_PRO_DATA_LOGS", type: "VARCHAR(19)", maxLength: 19, nullable: false, oldClrType: typeof(string), oldType: "CHAR(19)", oldMaxLength: 19); migrationBuilder.AlterColumn( name: "MaterialInputTime", table: "SUPPLIER_PRO_DATA_LOGS", type: "VARCHAR(19)", maxLength: 19, nullable: false, oldClrType: typeof(string), oldType: "CHAR(19)", oldMaxLength: 19); migrationBuilder.AlterColumn( name: "DateTime", table: "SUPPLIER_PRO_DATA_LOGS", type: "VARCHAR(19)", maxLength: 19, nullable: false, oldClrType: typeof(string), oldType: "CHAR(16)", oldMaxLength: 16); migrationBuilder.AlterColumn( name: "CollectTime", table: "SUPPLIER_PRO_DATA_LOGS", type: "VARCHAR(19)", maxLength: 19, nullable: false, oldClrType: typeof(string), oldType: "CHAR(19)", oldMaxLength: 19); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "CalibrationDate", table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", type: "nvarchar(max)", nullable: false, oldClrType: typeof(DateTime), oldType: "datetime2"); migrationBuilder.AlterColumn( name: "LimitUpdateTime", table: "SUPPLIER_PRO_MATERIAL_STOCK_LOGS", type: "CHAR(19)", maxLength: 19, nullable: true, oldClrType: typeof(string), oldType: "VARCHAR(19)", oldMaxLength: 19, oldNullable: true); migrationBuilder.AlterColumn( name: "DeadLine", table: "SUPPLIER_PRO_MATERIAL_STOCK_LOGS", type: "VARCHAR(10)", maxLength: 10, nullable: false, oldClrType: typeof(string), oldType: "VARCHAR(30)", oldMaxLength: 30); migrationBuilder.AlterColumn( name: "LimitUpdateTime", table: "SUPPLIER_PRO_MATERIAL_STOCK", type: "CHAR(19)", maxLength: 19, nullable: true, oldClrType: typeof(string), oldType: "varCHAR(19)", oldMaxLength: 19, oldNullable: true); migrationBuilder.AlterColumn( name: "MaterialOutputTime", table: "SUPPLIER_PRO_DATA_LOGS", type: "CHAR(19)", maxLength: 19, nullable: false, oldClrType: typeof(string), oldType: "VARCHAR(19)", oldMaxLength: 19); migrationBuilder.AlterColumn( name: "MaterialInputTime", table: "SUPPLIER_PRO_DATA_LOGS", type: "CHAR(19)", maxLength: 19, nullable: false, oldClrType: typeof(string), oldType: "VARCHAR(19)", oldMaxLength: 19); migrationBuilder.AlterColumn( name: "DateTime", table: "SUPPLIER_PRO_DATA_LOGS", type: "CHAR(16)", maxLength: 16, nullable: false, oldClrType: typeof(string), oldType: "VARCHAR(19)", oldMaxLength: 19); migrationBuilder.AlterColumn( name: "CollectTime", table: "SUPPLIER_PRO_DATA_LOGS", type: "CHAR(19)", maxLength: 19, nullable: false, oldClrType: typeof(string), oldType: "VARCHAR(19)", oldMaxLength: 19); } } }