# HG changeset patch # User Matthew Wild # Date 1436287349 -3600 # Node ID fc9c1a566a19e022655a5ad26b3824f9c22db21d # Parent 2e75b94e3a1e6e782fb2216c37764071f84fa325 mod_storage_sql2: Don't upgrade tables without admin intervention diff -r 2e75b94e3a1e -r fc9c1a566a19 plugins/mod_storage_sql2.lua --- a/plugins/mod_storage_sql2.lua Tue Jul 07 17:41:09 2015 +0100 +++ b/plugins/mod_storage_sql2.lua Tue Jul 07 17:42:29 2015 +0100 @@ -396,8 +396,8 @@ -- 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