diff --git a/BTCPayServer.Data/Migrations/20200507092343_AddArchivedToInvoice.cs b/BTCPayServer.Data/Migrations/20200507092343_AddArchivedToInvoice.cs index 6d863c7e8..96946ce83 100644 --- a/BTCPayServer.Data/Migrations/20200507092343_AddArchivedToInvoice.cs +++ b/BTCPayServer.Data/Migrations/20200507092343_AddArchivedToInvoice.cs @@ -15,6 +15,11 @@ namespace BTCPayServer.Migrations table: "Invoices", nullable: false, defaultValue: false); + migrationBuilder.AddColumn( + name: "Archived", + table: "PaymentRequests", + nullable: false, + defaultValue: false); } protected override void Down(MigrationBuilder migrationBuilder) @@ -24,6 +29,9 @@ namespace BTCPayServer.Migrations migrationBuilder.DropColumn( name: "Archived", table: "Invoices"); + migrationBuilder.DropColumn( + name: "Archived", + table: "PaymentRequests"); } } } diff --git a/BTCPayServer.Data/Migrations/20200508090807_AddArchivedToPaymentRequests.cs b/BTCPayServer.Data/Migrations/20200508090807_AddArchivedToPaymentRequests.cs deleted file mode 100644 index 3508f7ccf..000000000 --- a/BTCPayServer.Data/Migrations/20200508090807_AddArchivedToPaymentRequests.cs +++ /dev/null @@ -1,30 +0,0 @@ -using BTCPayServer.Data; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace BTCPayServer.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20200508090807_AddArchivedToPaymentRequests")] - public partial class AddArchivedToPaymentRequests : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "Archived", - table: "PaymentRequests", - nullable: false, - defaultValue: false); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - if (this.SupportDropColumn(ActiveProvider)) - { - migrationBuilder.DropColumn( - name: "Archived", - table: "PaymentRequests"); - } - } - } -}