salix/db/changes/10070-coffee/01-calendar_state.sql

6 lines
293 B
MySQL
Raw Normal View History

ALTER TABLE `postgresql`.`calendar_state`
ADD COLUMN `code` VARCHAR(45) NULL AFTER `permissionRate`;
UPDATE `postgresql`.`calendar_state` SET `code` = 'holiday' WHERE `calendar_state_id` = 1;
UPDATE `postgresql`.`calendar_state` SET `code` = 'halfHoliday' WHERE `calendar_state_id` = 6;