mod_storage_sql2: Use primary_key and auto_increment flags instead of baking that...
authorKim Alvefur <zash@zash.se>
Wed, 30 Oct 2013 21:27:22 +0000 (22:27 +0100)
committerKim Alvefur <zash@zash.se>
Wed, 30 Oct 2013 21:27:22 +0000 (22:27 +0100)
plugins/mod_storage_sql2.lua

index dcd7a45a5d81550bd9566b76077f8037c08f493e..a4f47a87e873faf92cb84e90865615f0685bb653 100644 (file)
@@ -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 };