Changeset

6757:fc9c1a566a19

mod_storage_sql2: Don't upgrade tables without admin intervention
author Matthew Wild <mwild1@gmail.com>
date Tue, 07 Jul 2015 17:42:29 +0100
parents 6756:2e75b94e3a1e
children 6758:88b89facc3c9
files plugins/mod_storage_sql2.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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