Diff

plugins/mod_storage_sql.lua @ 13853:5611ce3bc54c

Merge 13.0->trunk
author Kim Alvefur <zash@zash.se>
date Wed, 16 Apr 2025 18:27:46 +0200
parent 13852:ce4b4c2863f3
line wrap: on
line diff
--- a/plugins/mod_storage_sql.lua	Wed Apr 16 12:03:08 2025 +0100
+++ b/plugins/mod_storage_sql.lua	Wed Apr 16 18:27:46 2025 +0200
@@ -879,7 +879,7 @@
 		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