diff options
author | Matthew Wild <mwild1@gmail.com> | 2015-07-07 17:42:29 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2015-07-07 17:42:29 +0100 |
commit | 6a6e78358a50ba165d97eb62dcabecec208404dc (patch) | |
tree | b27c6928a550644b839525ec70715c4721a66784 /plugins | |
parent | 6b0cf4aafe46810300e8642285e12f772e46f759 (diff) | |
download | prosody-6a6e78358a50ba165d97eb62dcabecec208404dc.tar.gz prosody-6a6e78358a50ba165d97eb62dcabecec208404dc.zip |
mod_storage_sql2: Don't upgrade tables without admin intervention
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_storage_sql2.lua | 4 |
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 |