mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-21 14:24:09 +01:00
db: set now-unused channels.short_channel_id text column to NULL after migration
Suggested-by: @cdecker Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
939a7b2b18
commit
e0218841c2
1 changed files with 5 additions and 0 deletions
|
@ -1508,6 +1508,11 @@ static void migrate_channels_scids_as_integers(struct lightningd *ld,
|
|||
* (and sqlite3 has them referencing a now-deleted table!).
|
||||
* When we can assume sqlite3 2021-04-19 (3.35.5), we can
|
||||
* simply use DROP COLUMN (yay!) */
|
||||
|
||||
/* So null-out the unused column, at least! */
|
||||
stmt = db_prepare_v2(db, SQL("UPDATE channels"
|
||||
" SET short_channel_id = NULL;"));
|
||||
db_exec_prepared_v2(take(stmt));
|
||||
}
|
||||
|
||||
static void migrate_payments_scids_as_integers(struct lightningd *ld,
|
||||
|
|
Loading…
Add table
Reference in a new issue