From 2c97611fedc6a28d47708dddcd3ee9a2e1ee69a4 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sun, 5 Jun 2011 11:53:41 +0100 Subject: 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(-) (limited to 'tools/migration') 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(); -- cgit v1.2.3