mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-11 06:52:46 +02:00
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:
@@ -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.
|
||||
},
|
||||
}
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user