using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace TaskManager.EntityFramework.Migrations { /// public partial class _2025052902 : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "Remark", table: "SUPPLIER_SINV_DATA", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)"); migrationBuilder.AlterColumn( name: "Remark", table: "SUPPLIER_SA_WEEK", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)"); migrationBuilder.AlterColumn( name: "Remark", table: "SUPPLIER_RETURN", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)"); migrationBuilder.AlterColumn( name: "Remark", table: "SUPPLIER_PRO_TSCHEDUL", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)"); migrationBuilder.AlterColumn( 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( name: "Remark", table: "SUPPLIER_PRO_SCHEDULING", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)"); migrationBuilder.AlterColumn( name: "Remark", table: "SUPPLIER_PRO_PLANING", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)"); migrationBuilder.AlterColumn( name: "Remark", table: "SUPPLIER_PRO_MATERIAL_STOCK", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)"); migrationBuilder.AlterColumn( name: "Remark", table: "SUPPLIER_PRO_HSCHEDUL", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)"); migrationBuilder.AlterColumn( name: "WriteState", table: "SUPPLIER_PRO_FLAW", type: "bit", nullable: false, defaultValue: false, oldClrType: typeof(bool), oldType: "bit"); migrationBuilder.AlterColumn( name: "Remark", table: "SUPPLIER_PRO_FLAW", type: "NVarchar(500)", maxLength: 500, nullable: true, oldClrType: typeof(string), oldType: "NVarchar(500)", oldMaxLength: 500); migrationBuilder.AlterColumn( name: "ReadState", table: "SUPPLIER_PRO_FLAW", type: "bit", nullable: false, defaultValue: false, oldClrType: typeof(bool), oldType: "bit"); migrationBuilder.AlterColumn( name: "Remark", table: "SUPPLIER_PRO_FIRST_PASSYIELD", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)"); migrationBuilder.AlterColumn( name: "Remark", table: "SUPPLIER_PRO_DATA", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)"); migrationBuilder.AlterColumn( name: "Remark", table: "SUPPLIER_PRO_CSCHEDUL", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)"); migrationBuilder.AlterColumn( name: "Remark", table: "SUPPLIER_PRO_CPS", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)"); migrationBuilder.AlterColumn( name: "Remark", table: "SUPPLIER_PO", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)"); migrationBuilder.AlterColumn( name: "Remark", table: "SUPPLIER_MRP_STATE", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)"); migrationBuilder.AlterColumn( name: "Remark", table: "SUPPLIER_MRP_MONTH", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)"); migrationBuilder.AlterColumn( name: "Remark", table: "SUPPLIER_MRP_DATE", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)"); migrationBuilder.AlterColumn( name: "Remark", table: "SUPPLIER_INV_DATA", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)"); migrationBuilder.AlterColumn( name: "Remark", table: "SUPPLIER_INFO", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)"); migrationBuilder.AlterColumn( name: "Remark", table: "SUPPLIER_EMPLOYEE", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)"); migrationBuilder.AlterColumn( name: "Remark", table: "SUPPLIER_DEL_STATE", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)"); migrationBuilder.AlterColumn( name: "Remark", table: "SUPPLIER_CON_PO", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)"); migrationBuilder.AlterColumn( name: "Remark", table: "SUPPLIER_CON_MMRP", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)"); migrationBuilder.AlterColumn( name: "Remark", table: "SUPPLIER_CON_DATE", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)"); migrationBuilder.AlterColumn( name: "Remark", table: "SUPPLIER_BOM", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "Remark", table: "SUPPLIER_SINV_DATA", type: "nvarchar(max)", nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true); 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: "Remark", table: "SUPPLIER_RETURN", type: "nvarchar(max)", nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true); 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: "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: "Remark", table: "SUPPLIER_PRO_SCHEDULING", type: "nvarchar(max)", nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true); 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: "Remark", table: "SUPPLIER_PRO_MATERIAL_STOCK", type: "nvarchar(max)", nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true); 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: "WriteState", table: "SUPPLIER_PRO_FLAW", type: "bit", nullable: false, oldClrType: typeof(bool), oldType: "bit", oldDefaultValue: false); migrationBuilder.AlterColumn( name: "Remark", table: "SUPPLIER_PRO_FLAW", type: "NVarchar(500)", maxLength: 500, nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "NVarchar(500)", oldMaxLength: 500, oldNullable: true); migrationBuilder.AlterColumn( name: "ReadState", table: "SUPPLIER_PRO_FLAW", type: "bit", nullable: false, oldClrType: typeof(bool), oldType: "bit", oldDefaultValue: false); migrationBuilder.AlterColumn( name: "Remark", table: "SUPPLIER_PRO_FIRST_PASSYIELD", type: "nvarchar(max)", nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true); migrationBuilder.AlterColumn( name: "Remark", table: "SUPPLIER_PRO_DATA", type: "nvarchar(max)", nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true); 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: "Remark", table: "SUPPLIER_PRO_CPS", type: "nvarchar(max)", nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true); migrationBuilder.AlterColumn( name: "Remark", table: "SUPPLIER_PO", type: "nvarchar(max)", nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true); migrationBuilder.AlterColumn( name: "Remark", table: "SUPPLIER_MRP_STATE", type: "nvarchar(max)", nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true); migrationBuilder.AlterColumn( name: "Remark", table: "SUPPLIER_MRP_MONTH", type: "nvarchar(max)", nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true); migrationBuilder.AlterColumn( name: "Remark", table: "SUPPLIER_MRP_DATE", type: "nvarchar(max)", nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true); migrationBuilder.AlterColumn( name: "Remark", table: "SUPPLIER_INV_DATA", type: "nvarchar(max)", nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true); migrationBuilder.AlterColumn( name: "Remark", table: "SUPPLIER_INFO", type: "nvarchar(max)", nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true); migrationBuilder.AlterColumn( name: "Remark", table: "SUPPLIER_EMPLOYEE", type: "nvarchar(max)", nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true); migrationBuilder.AlterColumn( name: "Remark", table: "SUPPLIER_DEL_STATE", type: "nvarchar(max)", nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true); migrationBuilder.AlterColumn( name: "Remark", table: "SUPPLIER_CON_PO", type: "nvarchar(max)", nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true); migrationBuilder.AlterColumn( name: "Remark", table: "SUPPLIER_CON_MMRP", type: "nvarchar(max)", nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true); migrationBuilder.AlterColumn( name: "Remark", table: "SUPPLIER_CON_DATE", type: "nvarchar(max)", nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true); migrationBuilder.AlterColumn( name: "Remark", table: "SUPPLIER_BOM", type: "nvarchar(max)", nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true); } } }