From 61405a2644c4731967bc8bf21b7af0954087ffe2 Mon Sep 17 00:00:00 2001 From: Milan Date: Fri, 26 Jul 2024 21:08:44 +0200 Subject: [PATCH] install/create.sql: new index for events --- install/create.sql | 2 ++ install/migrate.sql | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/install/create.sql b/install/create.sql index 803dfa0..ca93986 100644 --- a/install/create.sql +++ b/install/create.sql @@ -1816,3 +1816,5 @@ CHANGE COLUMN `email` `email` VARCHAR(100) NULL DEFAULT NULL ; ALTER TABLE `calcms`.`calcms_user_selected_events` CHANGE COLUMN `user` `user` VARCHAR(100) NOT NULL ; + +CREATE INDEX idx_covering ON calcms_events (start, end, id); \ No newline at end of file diff --git a/install/migrate.sql b/install/migrate.sql index d788558..11dc0c3 100644 --- a/install/migrate.sql +++ b/install/migrate.sql @@ -361,4 +361,6 @@ ADD COLUMN `week_of_month` INT UNSIGNED NULL AFTER `weekday`, ADD COLUMN `month` INT UNSIGNED NULL AFTER `week_of_month`, CHANGE COLUMN `frequency` `frequency` INT UNSIGNED NULL ; -update `calcms_studio_timeslot_schedule` set period_type = 'days' where period_type = ''; \ No newline at end of file +update `calcms_studio_timeslot_schedule` set period_type = 'days' where period_type = ''; + +CREATE INDEX idx_covering ON calcms_events (start, end, id); \ No newline at end of file