aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_storage_sql2.lua
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
commit6a6e78358a50ba165d97eb62dcabecec208404dc (patch)
treeb27c6928a550644b839525ec70715c4721a66784 /plugins/mod_storage_sql2.lua
parent6b0cf4aafe46810300e8642285e12f772e46f759 (diff)
downloadprosody-6a6e78358a50ba165d97eb62dcabecec208404dc.tar.gz
prosody-6a6e78358a50ba165d97eb62dcabecec208404dc.zip
mod_storage_sql2: Don't upgrade tables without admin intervention
Diffstat (limited to 'plugins/mod_storage_sql2.lua')
-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