From 7573762c919f99025acd0e1cac7ec9d3df82b852 Mon Sep 17 00:00:00 2001
From: Matthew Wild <mwild1@gmail.com>
Date: Tue, 7 Jul 2015 17:42:29 +0100
Subject: mod_storage_sql2: Don't upgrade tables without admin intervention

---
 plugins/mod_storage_sql2.lua | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'plugins')

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
-- 
cgit v1.2.3