salix/db/install/changes/holiday.sql

17 lines
460 B
MySQL
Raw Normal View History

2019-03-22 07:28:57 +00:00
DROP VIEW IF EXISTS `vn`.`labourHoliday`;
DROP VIEW IF EXISTS `vn`.`holiday`;
CREATE
OR REPLACE ALGORITHM = UNDEFINED
DEFINER = `root`@`%`
SQL SECURITY DEFINER
VIEW `vn`.`holiday` AS
SELECT
`cl`.`calendar_labour_legend_id` AS `holidayDetailFk`,
`cl`.`calendar_free_id` AS `holidayTypeFk`,
`cl`.`workcenter_id` AS `workCenterFk`,
`cl`.`day` AS `dated`
FROM
`postgresql`.`calendar_labour` `cl`;