From 69836f31ccfdd0f95b9d5912570e6d842e17ea91 Mon Sep 17 00:00:00 2001 From: Andreas Granig Date: Wed, 4 Apr 2018 11:03:51 +0200 Subject: [PATCH] TT#35053 Add index to both username,with This is needed because we now also look at the `with` part to also retrieve inbound messages to a user. Change-Id: I8602ec4e3e8b94dcbdd3548dd3ad4ac73d399c0d --- db_scripts/diff/15393.down | 3 +++ db_scripts/diff/15393.up | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 db_scripts/diff/15393.down create mode 100644 db_scripts/diff/15393.up diff --git a/db_scripts/diff/15393.down b/db_scripts/diff/15393.down new file mode 100644 index 00000000..f5467062 --- /dev/null +++ b/db_scripts/diff/15393.down @@ -0,0 +1,3 @@ +USE prosody; + +ALTER TABLE sipwise_mam DROP KEY `with_idx`; diff --git a/db_scripts/diff/15393.up b/db_scripts/diff/15393.up new file mode 100644 index 00000000..88192906 --- /dev/null +++ b/db_scripts/diff/15393.up @@ -0,0 +1,3 @@ +USE prosody; + +ALTER TABLE sipwise_mam ADD KEY `with_idx` (`with`);