# HG changeset patch # User Kim Alvefur # Date 1480582977 -3600 # Node ID 437fb77e5dedc59bd295e86bf0f4b0adc8002a6b # Parent 274d0e57cc601efe5bea330b22b15e75a2d2c4d2 mod_storage_sql: Normalize parameters for upgrade command diff -r 274d0e57cc60 -r 437fb77e5ded plugins/mod_storage_sql.lua --- a/plugins/mod_storage_sql.lua Thu Dec 01 10:02:26 2016 +0100 +++ b/plugins/mod_storage_sql.lua Thu Dec 01 10:02:57 2016 +0100 @@ -484,7 +484,7 @@ -- 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");