Software /
code /
prosody
Comparison
plugins/mod_storage_sql.lua @ 8037:5a802653d50d
mod_storage_sql: Ignore name clash [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 01 Apr 2017 19:45:47 +0200 |
parent | 8036:7ebaefc88b3d |
child | 8038:cd6cef579e82 |
comparison
equal
deleted
inserted
replaced
8036:7ebaefc88b3d | 8037:5a802653d50d |
---|---|
565 local prosodyctl = require "util.prosodyctl"; | 565 local prosodyctl = require "util.prosodyctl"; |
566 local command = table.remove(arg, 1); | 566 local command = table.remove(arg, 1); |
567 if command == "upgrade" then | 567 if command == "upgrade" then |
568 -- We need to find every unique dburi in the config | 568 -- We need to find every unique dburi in the config |
569 local uris = {}; | 569 local uris = {}; |
570 for host in pairs(prosody.hosts) do | 570 for host in pairs(prosody.hosts) do -- luacheck: ignore 431/host |
571 local params = normalize_params(config.get(host, "sql") or default_params); | 571 local params = normalize_params(config.get(host, "sql") or default_params); |
572 uris[sql.db2uri(params)] = params; | 572 uris[sql.db2uri(params)] = params; |
573 end | 573 end |
574 print("We will check and upgrade the following databases:\n"); | 574 print("We will check and upgrade the following databases:\n"); |
575 for _, params in pairs(uris) do | 575 for _, params in pairs(uris) do |