Software /
code /
prosody
Changeset
4310:52ccbf71d062
migrator/prosody_sql.lua: Fix for compatibility with non-MySQL databases
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 05 Jun 2011 11:53:41 +0100 |
parents | 4309:7ad81d81f5ec |
children | 4311:d6366294f618 |
files | tools/migration/migrator/prosody_sql.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/migration/migrator/prosody_sql.lua Sun Jun 05 11:53:29 2011 +0100 +++ b/tools/migration/migrator/prosody_sql.lua Sun Jun 05 11:53:41 2011 +0100 @@ -42,7 +42,7 @@ 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();