Support more indices

This commit is contained in:
ZeldaZach 2025-01-20 04:42:09 -05:00
parent e0a3855fca
commit 75669b6f23
No known key found for this signature in database
2 changed files with 1 additions and 3 deletions

View file

@ -1,6 +1,5 @@
-- Servatrice db migration from version 32 to version 33
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;

View file

@ -197,8 +197,7 @@ CREATE TABLE IF NOT EXISTS `cockatrice_sessions` (
KEY `username` (`user_name`),
INDEX `idx_start_time` (`start_time`),
INDEX `idx_clientid` (`clientid`),
INDEX `idx_ip_address` (`ip_address`),
INDEX `idx_end_time` (`end_time`)
INDEX `idx_ip_address` (`ip_address`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE utf8mb4_unicode_ci;
-- server moderation