projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9483fe0
)
mod_storage_sql2: Use primary_key and auto_increment flags instead of baking that...
author
Kim Alvefur
<zash@zash.se>
Wed, 30 Oct 2013 21:27:22 +0000
(22:27 +0100)
committer
Kim Alvefur
<zash@zash.se>
Wed, 30 Oct 2013 21:27:22 +0000
(22:27 +0100)
plugins/mod_storage_sql2.lua
patch
|
blob
|
history
diff --git
a/plugins/mod_storage_sql2.lua
b/plugins/mod_storage_sql2.lua
index dcd7a45a5d81550bd9566b76077f8037c08f493e..a4f47a87e873faf92cb84e90865615f0685bb653 100644
(file)
--- a/
plugins/mod_storage_sql2.lua
+++ b/
plugins/mod_storage_sql2.lua
@@
-64,7
+64,7
@@
local function create_table()
local ProsodyArchiveTable = Table {
name="prosodyarchive";
- Column { name="sort_id", type="INTEGER
PRIMARY KEY AUTOINCREMENT"
, nullable=false };
+ Column { name="sort_id", type="INTEGER
", primary_key=true, auto_increment=true
, nullable=false };
Column { name="host", type="TEXT", nullable=false };
Column { name="user", type="TEXT", nullable=false };
Column { name="store", type="TEXT", nullable=false };