studio-timeslot: add week in month

This commit is contained in:
Milan
2024-04-18 20:44:37 +02:00
parent f56ee0d53e
commit ea952a8021
9 changed files with 681 additions and 239 deletions

View File

@@ -353,3 +353,12 @@ update calcms_series set image = replace(image , '/agenda_files/media/images/',
update calcms_series set image = replace(image , '/agenda_files/media/icons/', '') where image like '%/agenda_files/media/icons/%';
update calcms_series set image = replace(image , '/agenda_files/media/thumbs/', '') where image like '%/agenda_files/media/thumbs/%';
-- add day of month to studio schedules
ALTER TABLE `calcms`.`calcms_studio_timeslot_schedule`
ADD COLUMN `period_type` VARCHAR(45) NOT NULL AFTER `end_date`,
ADD COLUMN `weekday` INT UNSIGNED NULL AFTER `period_type`,
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 = '';