lnd: run invoice migration on startup

This commit runs the invoice migration if the user has a KV SQL backend
configured.
This commit is contained in:
Andras Banki-Horvath committed 2025-01-23 09:11:01 +01:00
1 parent 94e2724a34
commit 8d20e2a23b
5 files changed
+71 -41

No files matched your search

+9
View File
@@ -61,6 +61,15 @@ var (
Version: 6,
SchemaVersion: 6,
},
{
Name: "kv_invoice_migration",
Version: 7,
SchemaVersion: 6,
// A migration function is may be attached to this
// migration to migrate KV invoices to the native SQL
// schema. This is optional and can be disabled by the
// user if necessary.
},
}
)