aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_storage_sql.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-12-01 10:02:57 +0100
committerKim Alvefur <zash@zash.se>2016-12-01 10:02:57 +0100
commit738528509c19ea443b4066e49b7a93fd2317b0ee (patch)
tree26a1bbc2e61683a1465d48eae5aa8950b20f57e6 /plugins/mod_storage_sql.lua
parentd0df7de3799bfd517ac06c2385a2dbecfe5ba34a (diff)
downloadprosody-738528509c19ea443b4066e49b7a93fd2317b0ee.tar.gz
prosody-738528509c19ea443b4066e49b7a93fd2317b0ee.zip
mod_storage_sql: Normalize parameters for upgrade command
Diffstat (limited to 'plugins/mod_storage_sql.lua')
-rw-r--r--plugins/mod_storage_sql.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_storage_sql.lua b/plugins/mod_storage_sql.lua
index 67a441b7..819846bb 100644
--- a/plugins/mod_storage_sql.lua
+++ b/plugins/mod_storage_sql.lua
@@ -484,7 +484,7 @@ function module.command(arg)
-- We need to find every unique dburi in the config
local uris = {};
for host in pairs(prosody.hosts) do
- local params = config.get(host, "sql") or default_params;
+ local params = normalize_params(config.get(host, "sql") or default_params);
uris[sql.db2uri(params)] = params;
end
print("We will check and upgrade the following databases:\n");