|
@ -194,7 +194,7 @@ char *dbmigrations[] = { |
|
|
"CREATE INDEX channel_idx ON htlc_sigs (channelid)", |
|
|
"CREATE INDEX channel_idx ON htlc_sigs (channelid)", |
|
|
/* Get rid of OPENINGD entries; we don't put them in db any more */ |
|
|
/* Get rid of OPENINGD entries; we don't put them in db any more */ |
|
|
"DELETE FROM channels WHERE state=1", |
|
|
"DELETE FROM channels WHERE state=1", |
|
|
/* Keep track of db ugprades, for debugging */ |
|
|
/* Keep track of db upgrades, for debugging */ |
|
|
"CREATE TABLE db_upgrades (upgrade_from INTEGER, lightning_version TEXT);", |
|
|
"CREATE TABLE db_upgrades (upgrade_from INTEGER, lightning_version TEXT);", |
|
|
/* We used not to clean up peers when their channels were gone. */ |
|
|
/* We used not to clean up peers when their channels were gone. */ |
|
|
"DELETE FROM peers WHERE id NOT IN (SELECT peer_id FROM channels);", |
|
|
"DELETE FROM peers WHERE id NOT IN (SELECT peer_id FROM channels);", |
|
|