# HG changeset patch # User Kim Alvefur # Date 1383169027 -3600 # Node ID 62ce0328fdfec90e8763b814c7a2e76c04c52cce # Parent 319ccceb1302f6fc6c028cbf8cc9f4ca95eff6a6 mod_storage_sql2: The prosodyarchive_index should be unique diff -r 319ccceb1302 -r 62ce0328fdfe plugins/mod_storage_sql2.lua --- a/plugins/mod_storage_sql2.lua Wed Oct 30 22:27:22 2013 +0100 +++ b/plugins/mod_storage_sql2.lua Wed Oct 30 22:37:07 2013 +0100 @@ -73,7 +73,7 @@ Column { name="with", type="TEXT", nullable=false }; -- related id Column { name="type", type="TEXT", nullable=false }; Column { name="value", type="MEDIUMTEXT", nullable=false }; - Index { name="prosodyarchive_index", "host", "user", "store", "key" }; + Index { name="prosodyarchive_index", unique = true, "host", "user", "store", "key" }; }; engine:transaction(function() ProsodyArchiveTable:create(engine);