Skip to content

Commit e051ba6

Browse files
rustyrussellmadelinevibes
authored andcommitted
sqlite3: consistently comment where we want to upgrade.
Now you can grep for 'sqlite3 version' and see where we would like to update. Debian 11 (Bullseye) and Ubuntu 20.04 (Focal) ship with SQLite 3.31.1. RHEL 9 ships with 3.34.1. Fedora 38+ uses SQLite 3.40+. Unfortunately, RHEL8 ships with 3.26.0, and is still on maintenance Support (security fixes, no new features): runs until May 31, 2029. Signed-off-by: Rusty Russell <[email protected]>
1 parent 0ca833f commit e051ba6

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

db/db_sqlite3.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,7 @@ static bool complete_table_manip(struct db *db,
570570
return true;
571571
}
572572

573+
/* FIXME: sqlite3 version 3.25.0 (2018-09-15) supports ALTER TABLE RENAME */
573574
static bool db_sqlite3_rename_column(struct db *db,
574575
const char *tablename,
575576
const char *from, const char *to)

plugins/sql.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -873,8 +873,8 @@ static struct command_result *channels_refresh(struct command *cmd,
873873

874874
plugin_log(cmd->plugin, LOG_DBG, "Refreshing channel: %s",
875875
fmt_short_channel_id(tmpctx, scid));
876-
/* FIXME: sqlite 3.24.0 (2018-06-04) added UPSERT, but
877-
* we don't require it. */
876+
/* FIXME: sqlite3 version 3.24.0 (2018-06-04) added
877+
* UPSERT, but we don't require it. */
878878
delete_channel_from_db(cmd, scid);
879879
req = jsonrpc_request_start(cmd, "listchannels",
880880
listchannels_one_done,

wallet/db.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1631,8 +1631,8 @@ static void migrate_channels_scids_as_integers(struct lightningd *ld,
16311631
/* FIXME: We cannot use ->delete_columns to remove
16321632
* short_channel_id, as other tables reference the channels
16331633
* (and sqlite3 has them referencing a now-deleted table!).
1634-
* When we can assume sqlite3 2021-04-19 (3.35.5), we can
1635-
* simply use DROP COLUMN (yay!) */
1634+
* When we can assume sqlite3 version 3.35.5 (2021-04-19),
1635+
* we can simply use DROP COLUMN (yay!) */
16361636

16371637
/* So null-out the unused column, at least! */
16381638
stmt = db_prepare_v2(db, SQL("UPDATE channels"

0 commit comments

Comments
 (0)