install/create.sql: new index for events

This commit is contained in:
Milan
2024-07-26 21:08:44 +02:00
parent 6744123447
commit 61405a2644
2 changed files with 5 additions and 1 deletions

View File

@@ -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);

View File

@@ -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 = '';
update `calcms_studio_timeslot_schedule` set period_type = 'days' where period_type = '';
CREATE INDEX idx_covering ON calcms_events (start, end, id);