mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-02 19:44:03 +02:00
config: rename skip-sql-invoice-migration to skip-native-sql-migration
In future releases we will use this flag to make potentially failing kv to native SQL migrations optional. For this reason it is better to rename it to avoid confusion.
This commit is contained in:
@ -1099,7 +1099,7 @@ func (d *DefaultDatabaseBuilder) BuildDatabase(
|
||||
// run. If the database version is already above this custom
|
||||
// migration's version (7), it will be skipped permanently,
|
||||
// regardless of the flag.
|
||||
if !d.cfg.DB.SkipSQLInvoiceMigration {
|
||||
if !d.cfg.DB.SkipNativeSQLMigration {
|
||||
migrationFn := func(tx *sqlc.Queries) error {
|
||||
err := invoices.MigrateInvoicesToSQL(
|
||||
ctx, dbs.ChanStateDB.Backend,
|
||||
|
Reference in New Issue
Block a user