Software / code / prosody
Diff
plugins/mod_storage_sql.lua @ 13787:3e72cdca6beb
Merge 13.0->trunk
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sun, 23 Mar 2025 17:24:49 +0100 |
| parent | 13784:b30eaa74d35b |
| child | 13832:5973a5d22ab5 |
line wrap: on
line diff
--- a/plugins/mod_storage_sql.lua Sat Mar 22 11:56:23 2025 +0100 +++ b/plugins/mod_storage_sql.lua Sun Mar 23 17:24:49 2025 +0100 @@ -885,16 +885,12 @@ end end) if indices["prosody_index"] then - if apply_changes then - local success = engine:transaction(function () - return assert(engine:execute([[DROP INDEX "prosody_index";]])); - end); - if not success then - module:log("error", "Failed to delete obsolete index \"prosody_index\""); - return false; - end - else - changes = true; + local success = engine:transaction(function () + return assert(engine:execute([[DROP INDEX "prosody_index";]])); + end); + if not success then + module:log("error", "Failed to delete obsolete index \"prosody_index\""); + return false; end end end