mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-18 08:22:15 -07:00
Support more indices
This commit is contained in:
parent
e0a3855fca
commit
75669b6f23
2 changed files with 1 additions and 3 deletions
|
|
@ -1,6 +1,5 @@
|
||||||
-- Servatrice db migration from version 32 to version 33
|
-- Servatrice db migration from version 32 to version 33
|
||||||
|
|
||||||
ALTER TABLE cockatrice_user_analytics ADD INDEX `idx_last_login` (`last_login`);
|
ALTER TABLE cockatrice_user_analytics ADD INDEX `idx_last_login` (`last_login`);
|
||||||
ALTER TABLE cockatrice_sessions ADD INDEX `idx_end_time` (`end_time`);
|
|
||||||
|
|
||||||
UPDATE cockatrice_schema_version SET version=33 WHERE version=32;
|
UPDATE cockatrice_schema_version SET version=33 WHERE version=32;
|
||||||
|
|
|
||||||
|
|
@ -197,8 +197,7 @@ CREATE TABLE IF NOT EXISTS `cockatrice_sessions` (
|
||||||
KEY `username` (`user_name`),
|
KEY `username` (`user_name`),
|
||||||
INDEX `idx_start_time` (`start_time`),
|
INDEX `idx_start_time` (`start_time`),
|
||||||
INDEX `idx_clientid` (`clientid`),
|
INDEX `idx_clientid` (`clientid`),
|
||||||
INDEX `idx_ip_address` (`ip_address`),
|
INDEX `idx_ip_address` (`ip_address`)
|
||||||
INDEX `idx_end_time` (`end_time`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE utf8mb4_unicode_ci;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE utf8mb4_unicode_ci;
|
||||||
|
|
||||||
-- server moderation
|
-- server moderation
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue