mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-10 17:26:05 +01:00
Fix migration crash on postgres above 13.10
This commit is contained in:
parent
11b38a7a4c
commit
2c4d87aef8
3 changed files with 5 additions and 4 deletions
|
@ -19,8 +19,8 @@ namespace BTCPayServer.Migrations
|
|||
ALTER TABLE ""InvoiceEvents"" DROP CONSTRAINT IF EXISTS ""PK_InvoiceEvents"";
|
||||
ALTER TABLE ""InvoiceEvents"" DROP COLUMN IF EXISTS ""UniqueId"";
|
||||
CREATE INDEX IF NOT EXISTS ""IX_InvoiceEvents_InvoiceDataId"" ON ""InvoiceEvents""(""InvoiceDataId"");
|
||||
VACUUM (FULL, ANALYZE) ""InvoiceEvents"";
|
||||
", true);
|
||||
");
|
||||
migrationBuilder.Sql(@"VACUUM (FULL, ANALYZE) ""InvoiceEvents"";", true);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
|
|
|
@ -18,7 +18,8 @@ namespace BTCPayServer.Migrations
|
|||
migrationBuilder.Sql(@"
|
||||
DELETE FROM ""AddressInvoices"" WHERE ""Address"" LIKE '%_LightningLike';
|
||||
ALTER TABLE ""AddressInvoices"" DROP COLUMN IF EXISTS ""CreatedTime"";
|
||||
VACUUM (FULL, ANALYZE) ""AddressInvoices"";", true);
|
||||
");
|
||||
migrationBuilder.Sql(@"VACUUM (FULL, ANALYZE) ""AddressInvoices"";", true);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
|
|
|
@ -205,7 +205,7 @@ services:
|
|||
- bitcoind
|
||||
|
||||
postgres:
|
||||
image: postgres:13.4
|
||||
image: postgres:13.13
|
||||
environment:
|
||||
POSTGRES_HOST_AUTH_METHOD: trust
|
||||
ports:
|
||||
|
|
Loading…
Add table
Reference in a new issue