mod_storage_sql: Also retrieve all SQLite3 indices

Missed this in 2558be2daaca
13.0
Kim Alvefur 8 months ago
parent 82f3dc3616
commit ea2f97e9ed
  1. 2
      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

Loading…
Cancel
Save