summaryrefslogtreecommitdiff
path: root/sql/lite.sql
diff options
context:
space:
mode:
authorAlexey Shchepin <alexey@process-one.net>2017-10-27 15:20:29 +0300
committerAlexey Shchepin <alexey@process-one.net>2017-10-27 15:20:29 +0300
commite1c8e88d87b5e1fbfeb24c9d5d06336274afde6e (patch)
tree5ede7e4bcec247a43e92e9c86c0c9dc42f7f18c7 /sql/lite.sql
parentFix typespec (diff)
Update SQL archive index to match mysql.sql
Diffstat (limited to 'sql/lite.sql')
-rw-r--r--sql/lite.sql2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/lite.sql b/sql/lite.sql
index 0789ca45..44df0586 100644
--- a/sql/lite.sql
+++ b/sql/lite.sql
@@ -97,7 +97,7 @@ CREATE TABLE archive (
created_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
);
-CREATE INDEX i_username ON archive(username);
+CREATE INDEX i_username_timestamp ON archive(username, timestamp);
CREATE INDEX i_timestamp ON archive(timestamp);
CREATE INDEX i_peer ON archive(peer);
CREATE INDEX i_bare_peer ON archive(bare_peer);