itest: graph sql migration itest

This commit adds a basic itest that is run under the `test_native_sql`
flag. It tests that the migration is idempotent and that the node cant
be restarted without the `db.use-native-sql` flag once the graph
migration has been run.
This commit is contained in:
Elle Mouton committed 2025-07-15 06:40:22 +02:00
1 parent f5b50afb92
commit a2ffa74684
5 files changed
+164

No files matched your search

+4
View File
@@ -14,6 +14,10 @@ import (
"github.com/lightningnetwork/lnd/sqldb/sqlc"
)
// RunTestSQLMigration is a build tag that indicates whether the test_native_sql
// build tag is set.
var RunTestSQLMigration = true
// getGraphStore returns a graphdb.V1Store backed by a graphdb.SQLStore
// implementation.
func (d *DefaultDatabaseBuilder) getGraphStore(baseDB *sqldb.BaseDB,