migrator/prosody_sql.lua: Fix for compatibility with non-MySQL databases
authorMatthew Wild <mwild1@gmail.com>
Sun, 5 Jun 2011 10:53:41 +0000 (11:53 +0100)
committerMatthew Wild <mwild1@gmail.com>
Sun, 5 Jun 2011 10:53:41 +0000 (11:53 +0100)
tools/migration/migrator/prosody_sql.lua

index ec86417ca995b40cae9b479e11d5060bbcde5f5d..27b5835e81cb7ae5a1170f7816d66f425bc21964 100644 (file)
@@ -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();