aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2013-10-30 22:37:07 +0100
committerKim Alvefur <zash@zash.se>2013-10-30 22:37:07 +0100
commitcc7547d712dc3ee7519313c92b5f877b89d64d95 (patch)
tree53c852818b5ddd751396b1f4c3e5474a6f5433d9 /plugins
parent18c0eafd7ac0a1e90c593824e02af01b6eb401b8 (diff)
downloadprosody-cc7547d712dc3ee7519313c92b5f877b89d64d95.tar.gz
prosody-cc7547d712dc3ee7519313c92b5f877b89d64d95.zip
mod_storage_sql2: The prosodyarchive_index should be unique
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_storage_sql2.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_storage_sql2.lua b/plugins/mod_storage_sql2.lua
index a4f47a87..9be10d24 100644
--- a/plugins/mod_storage_sql2.lua
+++ b/plugins/mod_storage_sql2.lua
@@ -73,7 +73,7 @@ local function create_table()
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);