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:
Andras Banki-Horvath
2025-03-17 16:42:26 +01:00
parent 053d63e110
commit 55595954ad
4 changed files with 12 additions and 7 deletions

View File

@ -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,