lightning-terminal/db
Viktor Torstensson 059554474e
db: skip SQL migration when no kvdb files exist
Avoid creating legacy bbolt database files when the kvdb-to-SQL
programmatic migration runs on a node that never had LiT kvdb state.

Note that we only skip the creating the database file if there is no
single bbolt database file. If for example there's only 1 existing
bbolt database file, we will still create the new bbolt database file
for the other 2 bbolt databases, as we for example need to pass the
accounts & session databases to the firewalldb migration, and we'd want
to avoid having the migrations become more complex by having to handle
the case where the other databases are missing.
2026-06-16 21:16:11 +02:00
..
migsets db: skip SQL migration when no kvdb files exist 2026-06-16 21:16:11 +02:00
sqlc Merge pull request #1305 from ViktorT-11/2026-05-sql-migration-in-prod 2026-06-08 21:08:16 +02:00
sqlcmig6 multi: preserve macaroon recipe order in SQL 2026-06-08 17:21:03 +02:00
tombstone db: unify kvdb file existence checks 2026-06-16 20:59:56 +02:00
interfaces.go multi: remove unused db code 2026-05-14 11:37:52 +02:00
log.go multi: update LND and friends 2025-03-26 09:20:52 -05:00
migrations.go multi: Don't backup Sqlite database file on mig 2026-06-08 11:23:58 +02:00
postgres.go multi: rename MigrationStream names to MigrationSet 2026-05-14 11:39:09 +02:00
postgres_fixture.go db: SQL boilerplate code 2025-01-29 16:37:20 +02:00
schemas.go multi: introduce dev migrations 2026-05-14 11:38:30 +02:00
sqlerrors.go db: SQL boilerplate code 2025-01-29 16:37:20 +02:00
sqlite.go multi: remove unused db code 2026-05-14 11:37:52 +02:00