using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace DXApp.TemplateKitProject.Migrations { /// public partial class AddPerformanceIndexes : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "SellerTaxId", table: "ZugferdInvoices", type: "nvarchar(450)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true); migrationBuilder.AlterColumn( name: "InvoiceNumber", table: "ZugferdInvoices", type: "nvarchar(450)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true); migrationBuilder.CreateIndex( name: "IX_ZugferdInvoices_ImportedAt", table: "ZugferdInvoices", column: "ImportedAt"); migrationBuilder.CreateIndex( name: "IX_ZugferdInvoices_InvoiceNumber_SellerTaxId", table: "ZugferdInvoices", columns: new[] { "InvoiceNumber", "SellerTaxId" }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropIndex( name: "IX_ZugferdInvoices_ImportedAt", table: "ZugferdInvoices"); migrationBuilder.DropIndex( name: "IX_ZugferdInvoices_InvoiceNumber_SellerTaxId", table: "ZugferdInvoices"); migrationBuilder.AlterColumn( name: "SellerTaxId", table: "ZugferdInvoices", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(450)", oldNullable: true); migrationBuilder.AlterColumn( name: "InvoiceNumber", table: "ZugferdInvoices", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(450)", oldNullable: true); } } }