From: Kim Alvefur Date: Wed, 30 Oct 2013 21:27:22 +0000 (+0100) Subject: mod_storage_sql2: Use primary_key and auto_increment flags instead of baking that... X-Git-Url: https://git.enpas.org/?a=commitdiff_plain;h=51abef4f4e75ff94289fc2fa721a3466c5da468d;p=prosody.git mod_storage_sql2: Use primary_key and auto_increment flags instead of baking that into the type --- diff --git a/plugins/mod_storage_sql2.lua b/plugins/mod_storage_sql2.lua index dcd7a45a..a4f47a87 100644 --- 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 };