using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace TaskManager.EntityFramework.Migrations { /// public partial class z20250610000240003 : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "Id", table: "SUPPLIER_CON_MMRP", type: "nvarchar(450)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true); migrationBuilder.CreateIndex( name: "IX_SUPPLIER_CON_PO_Id", table: "SUPPLIER_CON_PO", column: "Id", unique: true, filter: "[Id] IS NOT NULL"); migrationBuilder.CreateIndex( name: "IX_SUPPLIER_CON_MMRP_Id", table: "SUPPLIER_CON_MMRP", column: "Id", unique: true, filter: "[Id] IS NOT NULL"); migrationBuilder.CreateIndex( name: "IX_SUPPLIER_CON_DATE_Id", table: "SUPPLIER_CON_DATE", column: "Id", unique: true, filter: "[Id] IS NOT NULL"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropIndex( name: "IX_SUPPLIER_CON_PO_Id", table: "SUPPLIER_CON_PO"); migrationBuilder.DropIndex( name: "IX_SUPPLIER_CON_MMRP_Id", table: "SUPPLIER_CON_MMRP"); migrationBuilder.DropIndex( name: "IX_SUPPLIER_CON_DATE_Id", table: "SUPPLIER_CON_DATE"); migrationBuilder.AlterColumn( name: "Id", table: "SUPPLIER_CON_MMRP", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(450)", oldNullable: true); } } }