From ea2f97e9ed8317dc9a62e45d9a807dca7e3700a5 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 16 Apr 2025 15:35:07 +0200 Subject: [PATCH] mod_storage_sql: Also retrieve all SQLite3 indices Missed this in 2558be2daaca --- plugins/mod_storage_sql.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mod_storage_sql.lua b/plugins/mod_storage_sql.lua index 6d9af68a2..41cdcb42c 100644 --- a/plugins/mod_storage_sql.lua +++ b/plugins/mod_storage_sql.lua @@ -879,7 +879,7 @@ local function upgrade_table(engine, params, apply_changes) -- luacheck: ignore local indices = {}; engine:transaction(function () if params.driver == "SQLite3" then - for row in engine:select [[SELECT "name" FROM "sqlite_schema" WHERE "type"='index' AND "tbl_name"='prosody' AND "name"='prosody_index';]] do + for row in engine:select [[SELECT "name" FROM "sqlite_schema" WHERE "type"='index' AND "tbl_name"='prosody';]] do indices[row[1]] = true; end elseif params.driver == "PostgreSQL" then