Software /
code /
prosody
Diff
plugins/mod_storage_sql.lua @ 7757:437fb77e5ded
mod_storage_sql: Normalize parameters for upgrade command
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 01 Dec 2016 10:02:57 +0100 |
parent | 7756:274d0e57cc60 |
child | 7758:2b305ec8c146 |
child | 7847:c430932b8113 |
line wrap: on
line diff
--- 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");