--- 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);