From 940935fb16cde82ed673b4fc4cf1f986288e1b8e Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sun, 5 Jun 2011 11:53:41 +0100 Subject: [PATCH] migrator/prosody_sql.lua: Fix for compatibility with non-MySQL databases --- tools/migration/migrator/prosody_sql.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/migration/migrator/prosody_sql.lua b/tools/migration/migrator/prosody_sql.lua index ec86417c..27b5835e 100644 --- a/tools/migration/migrator/prosody_sql.lua +++ b/tools/migration/migrator/prosody_sql.lua @@ -42,7 +42,7 @@ local function create_table(connection, params) ok, err = assert(stmt:execute()); commit_ok, commit_err = assert(connection:commit()); end - else -- COMPAT: Upgrade tables from 0.8.0 + elseif params.driver == "MySQL" then -- COMPAT: Upgrade tables from 0.8.0 -- Failed to create, but check existing MySQL table here local stmt = connection:prepare("SHOW COLUMNS FROM prosody WHERE Field='value' and Type='text'"); local ok = stmt:execute(); -- 2.30.2