17 lines
460 B
SQL
17 lines
460 B
SQL
|
|
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`;
|
|
|