graph/db: freeze sql migration queries
This commit is contained in:
1 parent
5db82a4233
commit
352b4d620a
11 files changed
+4141
-17
No files matched your search
+3
-1
@@ -37,6 +37,7 @@ import (
|
||||
"github.com/lightningnetwork/lnd/funding"
|
||||
graphdb "github.com/lightningnetwork/lnd/graph/db"
|
||||
graphdbmig1 "github.com/lightningnetwork/lnd/graph/db/migration1"
|
||||
graphmig1sqlc "github.com/lightningnetwork/lnd/graph/db/migration1/sqlc"
|
||||
"github.com/lightningnetwork/lnd/htlcswitch"
|
||||
"github.com/lightningnetwork/lnd/invoices"
|
||||
"github.com/lightningnetwork/lnd/keychain"
|
||||
@@ -1141,7 +1142,8 @@ func (d *DefaultDatabaseBuilder) BuildDatabase(
|
||||
QueryCfg: queryCfg,
|
||||
}
|
||||
err := graphdbmig1.MigrateGraphToSQL(
|
||||
ctx, cfg, dbs.ChanStateDB.Backend, tx,
|
||||
ctx, cfg, dbs.ChanStateDB.Backend,
|
||||
graphmig1sqlc.New(tx.GetTx()),
|
||||
)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to migrate "+
|
||||
|
||||
Reference in new issue
Block a user