projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4be16eb
)
migrator/prosody_sql.lua: Fix for compatibility with non-MySQL databases
author
Matthew Wild
<mwild1@gmail.com>
Sun, 5 Jun 2011 10:53:41 +0000
(11:53 +0100)
committer
Matthew Wild
<mwild1@gmail.com>
Sun, 5 Jun 2011 10:53:41 +0000
(11:53 +0100)
tools/migration/migrator/prosody_sql.lua
patch
|
blob
|
history
diff --git
a/tools/migration/migrator/prosody_sql.lua
b/tools/migration/migrator/prosody_sql.lua
index ec86417ca995b40cae9b479e11d5060bbcde5f5d..27b5835e81cb7ae5a1170f7816d66f425bc21964 100644
(file)
--- 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
ok, err = assert(stmt:execute());
commit_ok, commit_err = assert(connection:commit());
end
- else -- COMPAT: Upgrade tables from 0.8.0
+ else
if 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();
-- 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();