aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2015-07-07 17:42:29 +0100
committerMatthew Wild <mwild1@gmail.com>2015-07-07 17:42:29 +0100
commit7573762c919f99025acd0e1cac7ec9d3df82b852 (patch)
treeb27c6928a550644b839525ec70715c4721a66784
parent68fa7831dada4d821ddff964723c376f287d4ed5 (diff)
downloadprosody-7573762c919f99025acd0e1cac7ec9d3df82b852.tar.gz
prosody-7573762c919f99025acd0e1cac7ec9d3df82b852.zip
mod_storage_sql2: Don't upgrade tables without admin intervention
-rw-r--r--plugins/mod_storage_sql2.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_storage_sql2.lua b/plugins/mod_storage_sql2.lua
index b040cb05..a9d82214 100644
--- a/plugins/mod_storage_sql2.lua
+++ b/plugins/mod_storage_sql2.lua
@@ -396,8 +396,8 @@ function module.load()
-- FIXME: we should check in information_schema, etc.
create_table();
-- Check whether the table needs upgrading
- if not upgrade_table(params, true) then
- module:log("error", "Old database format detected, and upgrade failed");
+ if upgrade_table(params, false) then
+ module:log("error", "Old database format detected. Please run: prosodyctl mod_%s upgrade", module.name);
return false, "database upgrade needed";
end
end