mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 09:54:16 +01:00
db: Add a migration to set received_time on forwards in rare cases
The case where this is needed is when the wallet had a forwarded payment somewhere between commits66a47d2
(which started tracking forwardings) andd901304
(which added the `received_time` column). This just emulates the behavior of sqlite3 for postgres as well. Signed-off-by: Christian Decker <@cdecker>
This commit is contained in:
parent
1ecad0cc53
commit
396e8224fa
@ -477,6 +477,9 @@ static struct migration dbmigrations[] = {
|
||||
");"), NULL},
|
||||
{SQL("ALTER TABLE channels ADD shutdown_scriptpubkey_local BLOB;"),
|
||||
NULL},
|
||||
/* See https://github.com/ElementsProject/lightning/issues/3189 */
|
||||
{SQL("UPDATE forwarded_payments SET received_time=0 WHERE received_time IS NULL;"),
|
||||
NULL},
|
||||
};
|
||||
|
||||
/* Leak tracking. */
|
||||
|
Loading…
Reference in New Issue
Block a user