mirror of
https://github.com/lightninglabs/lightning-terminal.git
synced 2026-08-13 12:33:36 +02:00
If a user creates a session linked to an account, but later deletes that account using the `litcli accounts remove` command, the KVDB session will still contain the account ID of the removed account. During the KVDB to SQL migration, the accounts migration runs before the sessions migration. Since the deleted account no longer exists, it cannot be migrated. As a result, the migrated SQL session cannot link to the now non-existent account in the SQL store. In such cases, we will migrate the session and not link to any account in the SQL session. |
||
|---|---|---|
| .. | ||
| migration1 | ||
| migration2 | ||
| migtest | ||
| context.go | ||
| errors.go | ||
| interface.go | ||
| kvdb_store.go | ||
| log.go | ||
| macaroon.go | ||
| metadata.go | ||
| privacy_flags.go | ||
| privacy_flags_test.go | ||
| server.go | ||
| sql_migration.go | ||
| sql_migration_test.go | ||
| sql_store.go | ||
| store_test.go | ||
| test_kvdb.go | ||
| test_postgres.go | ||
| test_sql.go | ||
| test_sqlite.go | ||
| tlv.go | ||
| tlv_test.go | ||