Diff

plugins/mod_storage_sql.lua @ 8410:54ff1f91e4db

Merge 0.10->trunk
author Kim Alvefur <zash@zash.se>
date Tue, 21 Nov 2017 23:16:16 +0100
parent 8395:fbb9a1c2120e
parent 8409:e98b4352d7df
child 8470:81f894d08b17
line wrap: on
line diff
--- 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);