mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-11 12:42:47 +02:00
This commit plugs in the graph kvdb-to-sql migration for builds containing the `test_native_sql` tag. This will allow us to perform local tests and write itests for the migration without exposing it to the production release build.
21 lines
477 B
Go
21 lines
477 B
Go
//go:build test_db_postgres || test_db_sqlite || test_native_sql
|
|
|
|
package sqldb
|
|
|
|
var migrationAdditions = []MigrationConfig{
|
|
{
|
|
Name: "000007_graph",
|
|
Version: 8,
|
|
SchemaVersion: 7,
|
|
},
|
|
{
|
|
Name: "kv_graph_migration",
|
|
Version: 9,
|
|
SchemaVersion: 7,
|
|
// A migration function may be attached to this
|
|
// migration to migrate KV graph to the native SQL
|
|
// schema. This is optional and can be disabled by the
|
|
// user if necessary.
|
|
},
|
|
}
|