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
2024-09-17 15:18:12 +02:00
parent 94e2724a34
commit 8d20e2a23b
5 changed files with 71 additions and 41 deletions

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.
},
}
)