diff --git a/services/db/install/changes/1.2-CHECK/04-labourHolidayType.sql b/services/db/install/changes/1.2-CHECK/04-labourHolidayType.sql new file mode 100644 index 000000000..782566bfa --- /dev/null +++ b/services/db/install/changes/1.2-CHECK/04-labourHolidayType.sql @@ -0,0 +1,6 @@ +CREATE OR REPLACE VIEW vn.labourHolidayType + AS SELECT + `cf`.`calendar_free_id` AS `id`, + `cf`.`type` AS `name`, + `cf`.`rgb` AS `rgb` + FROM `postgresql`.`calendar_free` `cf`; \ No newline at end of file diff --git a/services/db/install/changes/1.2-CHECK/05-labourHolidayLegend.sql b/services/db/install/changes/1.2-CHECK/05-labourHolidayLegend.sql new file mode 100644 index 000000000..f550f17fa --- /dev/null +++ b/services/db/install/changes/1.2-CHECK/05-labourHolidayLegend.sql @@ -0,0 +1,5 @@ +CREATE OR REPLACE VIEW vn.labourHolidayLegend + AS SELECT + `cll`.`calendar_labour_legend_id` AS `id`, + `cll`.`descripcion` AS `description` + FROM `postgresql`.`calendar_labour_legend` `cll`; \ No newline at end of file diff --git a/services/db/install/changes/1.2-CHECK/06-labourHoliday.sql b/services/db/install/changes/1.2-CHECK/06-labourHoliday.sql new file mode 100644 index 000000000..5593466ce --- /dev/null +++ b/services/db/install/changes/1.2-CHECK/06-labourHoliday.sql @@ -0,0 +1,8 @@ +CREATE OR REPLACE VIEW vn.labourHoliday + AS SELECT + `cl`.`calendar_labour_legend_id` AS `labourHolidayLegendFk`, + `cl`.`calendar_free_id` AS `labourHolidayTypeFk`, + `cl`.`workcenter_id` AS `workCenterFk`, + `cl`.`day` AS `dated` + FROM + `postgresql`.`calendar_labour` `cl`; \ No newline at end of file