2021-12-24 09:10:28 +00:00
|
|
|
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;
|
|
|
|
|
2021-12-24 09:10:28 +00:00
|
|
|
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`;
|