aboutsummaryrefslogtreecommitdiffstats
path: root/tools/migration/migrator
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2011-06-05 11:53:41 +0100
committerMatthew Wild <mwild1@gmail.com>2011-06-05 11:53:41 +0100
commit2c97611fedc6a28d47708dddcd3ee9a2e1ee69a4 (patch)
treef26096572dba43a595216bbf06143ec1f628b229 /tools/migration/migrator
parent67088429be56260de6db1a75de036da082447d54 (diff)
downloadprosody-2c97611fedc6a28d47708dddcd3ee9a2e1ee69a4.tar.gz
prosody-2c97611fedc6a28d47708dddcd3ee9a2e1ee69a4.zip
migrator/prosody_sql.lua: Fix for compatibility with non-MySQL databases
Diffstat (limited to 'tools/migration/migrator')
-rw-r--r--tools/migration/migrator/prosody_sql.lua2
1 files changed, 1 insertions, 1 deletions
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();