Software /
code /
prosody
Changeset
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 |
parents | 7756:274d0e57cc60 |
children | 7758:2b305ec8c146 7759:69706084bdfe |
files | plugins/mod_storage_sql.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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");