# HG changeset patch # User Kim Alvefur # Date 1383168442 -3600 # Node ID 319ccceb1302f6fc6c028cbf8cc9f4ca95eff6a6 # Parent b6a56934338c5fc567e626396b86890fe72eca60 mod_storage_sql2: Use primary_key and auto_increment flags instead of baking that into the type diff -r b6a56934338c -r 319ccceb1302 plugins/mod_storage_sql2.lua --- a/plugins/mod_storage_sql2.lua Wed Oct 30 14:33:15 2013 +0100 +++ b/plugins/mod_storage_sql2.lua Wed Oct 30 22:27:22 2013 +0100 @@ -64,7 +64,7 @@ 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 };