# HG changeset patch # User Kim Alvefur # Date 1511302576 -3600 # Node ID 54ff1f91e4dbb327f4a8994b82f17e00a275dc59 # Parent b751bee6a829ca1a314260c92694573c880490d5# Parent e98b4352d7dfd64a214e9e7f363141b93d576607 Merge 0.10->trunk diff -r b751bee6a829 -r 54ff1f91e4db plugins/mod_storage_sql.lua --- a/plugins/mod_storage_sql.lua Tue Nov 21 21:48:43 2017 +0100 +++ b/plugins/mod_storage_sql.lua Tue Nov 21 23:16:16 2017 +0100 @@ -480,6 +480,8 @@ Column { name="type", type="TEXT", nullable=false }; Column { name="value", type="MEDIUMTEXT", nullable=false }; Index { name="prosodyarchive_index", unique = true, "host", "user", "store", "key" }; + Index { name="prosodyarchive_with", "host", "user", "store", "with" }; + Index { name="prosodyarchive_when", "host", "user", "store", "when" }; }; engine:transaction(function() ProsodyArchiveTable:create(engine);