From 22fbbee83793d1ab566d0c312aef4d798a036e6a Mon Sep 17 00:00:00 2001 From: ziggie Date: Wed, 13 Aug 2025 15:48:10 +0200 Subject: [PATCH] sqldb: delete wrong index names and add missing one --- sqldb/sqlc/migrations/000001_invoices.down.sql | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sqldb/sqlc/migrations/000001_invoices.down.sql b/sqldb/sqlc/migrations/000001_invoices.down.sql index 0e275b344..4d1bd739a 100644 --- a/sqldb/sqlc/migrations/000001_invoices.down.sql +++ b/sqldb/sqlc/migrations/000001_invoices.down.sql @@ -1,7 +1,3 @@ -DROP INDEX IF EXISTS invoice_payments_invoice_id_idx; -DROP INDEX IF EXISTS invoice_payments_settled_at_idx; -DROP TABLE IF EXISTS invoice_payments; - DROP INDEX IF EXISTS invoice_htlc_custom_records_htlc_id_idx; DROP TABLE IF EXISTS invoice_htlc_custom_records; @@ -11,6 +7,7 @@ DROP TABLE IF EXISTS invoice_htlcs; DROP INDEX IF EXISTS invoice_feature_invoice_id_idx; DROP TABLE IF EXISTS invoice_features; +DROP INDEX IF EXISTS invoices_settled_at_idx; DROP INDEX IF EXISTS invoices_created_at_idx; DROP INDEX IF EXISTS invoices_state_idx; DROP INDEX IF EXISTS invoices_payment_addr_idx;