diff options
Diffstat (limited to 'sql/mysql.sql')
-rw-r--r-- | sql/mysql.sql | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/mysql.sql b/sql/mysql.sql index 64d26fa87..aea9e454e 100644 --- a/sql/mysql.sql +++ b/sql/mysql.sql @@ -102,9 +102,9 @@ CREATE TABLE archive ( ) ENGINE=InnoDB CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; CREATE FULLTEXT INDEX i_text ON archive(txt); -CREATE INDEX i_username_timestamp USING BTREE ON archive(username, timestamp); -CREATE INDEX i_username_peer USING BTREE ON archive(username, peer); -CREATE INDEX i_username_bare_peer USING BTREE ON archive(username, bare_peer); +CREATE INDEX i_username_timestamp USING BTREE ON archive(username(191), timestamp); +CREATE INDEX i_username_peer USING BTREE ON archive(username(191), peer(191)); +CREATE INDEX i_username_bare_peer USING BTREE ON archive(username(191), bare_peer(191)); CREATE INDEX i_timestamp USING BTREE ON archive(timestamp); CREATE TABLE archive_prefs ( |