salix/db/changes/10440-fallas/00-travelThermograph.sql

16 lines
606 B
MySQL
Raw Normal View History

DROP TRIGGER `vn`.`travelThermograph_beforeInsert`;
2022-03-28 09:47:20 +00:00
ALTER TABLE `vn`.`travelThermograph` CHANGE `temperature` `temperature__` enum('COOL','WARM','DRY') CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL NULL;
CREATE OR REPLACE
ALGORITHM = UNDEFINED VIEW `vn2008`.`travel_thermograph` AS
select
`tt`.`thermographFk` AS `thermograph_id`,
`tt`.`created` AS `odbc_date`,
`tt`.`warehouseFk` AS `warehouse_id`,
`tt`.`travelFk` AS `travel_id`,
`tt`.`temperatureFk` AS `temperature`,
`tt`.`result` AS `result`,
`tt`.`dmsFk` AS `gestdoc_id`
from
2022-03-28 09:47:20 +00:00
`vn`.`travelThermograph` `tt`;