From b505c4dd28533f117a2085a020426111411e6d88 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 1 Dec 2016 10:02:57 +0100 Subject: mod_storage_sql: Normalize parameters for upgrade command --- 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 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"); -- cgit v1.2.3