mirror of
https://github.com/lightningnetwork/lnd.git
synced 2026-08-13 12:32:48 +02:00
lnd: add clarifiying comment when introducing a new db
This commit is contained in:
parent
8f11732aa3
commit
f56e933a3e
1 changed files with 10 additions and 0 deletions
|
|
@ -9,6 +9,16 @@ import (
|
|||
"github.com/lightningnetwork/lnd/sqldb/sqlc"
|
||||
)
|
||||
|
||||
// NOTE: This file (together with config_test_native_sql.go) contains
|
||||
// build-tag-specific overrides that control which backend is used for certain
|
||||
// stores. If any function in either file switches a store between KV and native
|
||||
// SQL depending on the build tag, and the corresponding migration is later
|
||||
// promoted from sqldb/migrations_dev.go into the mainline sqldb/migrations.go,
|
||||
// you must also update the UseNativeSQL branch in BuildDatabase
|
||||
// (config_builder.go) to use the native SQL backend for that store. Promoting
|
||||
// the migration without updating the store means the production build will
|
||||
// continue writing to the KV backend instead of SQL.
|
||||
|
||||
// RunTestSQLMigration is a build tag that indicates whether the test_native_sql
|
||||
// build tag is set.
|
||||
var RunTestSQLMigration = false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue