diff options
author | Alexey Shchepin <alexey@process-one.net> | 2017-10-27 15:20:29 +0300 |
---|---|---|
committer | Alexey Shchepin <alexey@process-one.net> | 2017-10-27 15:20:29 +0300 |
commit | e1c8e88d87b5e1fbfeb24c9d5d06336274afde6e (patch) | |
tree | 5ede7e4bcec247a43e92e9c86c0c9dc42f7f18c7 /sql/lite.sql | |
parent | Fix typespec (diff) |
Update SQL archive index to match mysql.sql
Diffstat (limited to 'sql/lite.sql')
-rw-r--r-- | sql/lite.sql | 2 |
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); |