using BTCPayServer.Data; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; namespace BTCPayServer.Migrations { [DbContext(typeof(ApplicationDbContext))] [Migration("20201208054211_invoicesorderindex")] public partial class invoicesorderindex : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "OrderId", table: "Invoices", maxLength: 100, nullable: true, oldClrType: typeof(string)); migrationBuilder.CreateIndex( name: "IX_Invoices_OrderId", table: "Invoices", column: "OrderId"); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropIndex( name: "IX_Invoices_OrderId", table: "Invoices"); } } }