Mercurial > prosody-hg
diff plugins/mod_storage_sql.lua @ 4316:2478698bdc52
Merge 0.8->trunk
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Tue, 07 Jun 2011 01:29:34 +0100 |
| parents | 7ad81d81f5ec |
| children | 5b0fcc5cdd4d |
line wrap: on
line diff
--- a/plugins/mod_storage_sql.lua Sun Jun 05 23:55:16 2011 +0100 +++ b/plugins/mod_storage_sql.lua Tue Jun 07 01:29:34 2011 +0100 @@ -93,7 +93,7 @@ if not(ok and commit_ok) then module:log("warn", "Failed to create index (%s), lookups may not be optimised", err or commit_err); 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();
