From 0800793e64cdc7092aca7284badd1219dda2ca15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elias=20M=C3=BCller?= Date: Wed, 14 Oct 2026 21:07:27 +0200 Subject: [PATCH] added lookup indexes to login attempts --- .../resources/migrations/loginLog/003_add_lookup_indexes.sql | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 common/src/main/resources/migrations/loginLog/003_add_lookup_indexes.sql diff --git a/common/src/main/resources/migrations/loginLog/003_add_lookup_indexes.sql b/common/src/main/resources/migrations/loginLog/003_add_lookup_indexes.sql new file mode 100644 index 0000000..3486e41 --- /dev/null +++ b/common/src/main/resources/migrations/loginLog/003_add_lookup_indexes.sql @@ -0,0 +1,5 @@ +-- Latest name per account and account per name, used for every name shown in the ban evasion dialogs. +ALTER TABLE login_attempts + ADD KEY IF NOT EXISTS idx_uuid_at (uuid, at), + ADD KEY IF NOT EXISTS idx_name_at (name, at), + DROP KEY IF EXISTS idx_uuid;