refs #6372 DeleteTablesFromVn2008 #2055

Merged
davidd merged 41 commits from 6372-Delete-views-from-vn2008 into dev 2024-02-22 06:14:26 +00:00
2 changed files with 6 additions and 5 deletions
Showing only changes of commit bad00167fa - Show all commits

View File

@ -4,10 +4,10 @@ CREATE OR REPLACE DEFINER=`root`@`localhost`
AS SELECT AS SELECT
`f`.`id` AS `flight_id`, `f`.`id` AS `flight_id`,
`f`.`duration` AS `duration`, `f`.`duration` AS `duration`,
`f`.`route` AS `route`, `f`.`flightPath` AS `route`,
`f`.`days` AS `days`, `f`.`days` AS `days`,
`f`.`airlineFk` AS `airline_id`, `f`.`airlineFk` AS `airline_id`,
`f`.`airportOutFk` AS `airport_out`, `f`.`airportArrivalFk` AS `airport_out`,
`f`.`airportInFk` AS `airport_in` `f`.`airportDepartureFk` AS `airport_in`
FROM FROM
`vn`.`flight` `f`; `vn`.`flight` `f`;

View File

@ -3,5 +3,6 @@ ALTER TABLE IF EXISTS `vn2008`.`flight` RENAME `vn`.`flight`;
ALTER TABLE IF EXISTS `vn`.`flight` ALTER TABLE IF EXISTS `vn`.`flight`
CHANGE COLUMN IF EXISTS `flight_id` `id` varchar(10) NOT NULL, CHANGE COLUMN IF EXISTS `flight_id` `id` varchar(10) NOT NULL,
CHANGE COLUMN IF EXISTS `airline_id` `airlineFk` smallint(2) unsigned DEFAULT NULL, CHANGE COLUMN IF EXISTS `airline_id` `airlineFk` smallint(2) unsigned DEFAULT NULL,
CHANGE COLUMN IF EXISTS `airport_out` `airportOutFk` varchar(3) NOT NULL, CHANGE COLUMN IF EXISTS `route` `flightPath` varchar(20) DEFAULT NULL,
CHANGE COLUMN IF EXISTS `airport_in` `airportInFk` varchar(3) NOT NULL; CHANGE COLUMN IF EXISTS `airport_out` `airportArrivalFk` varchar(3) NOT NULL,
CHANGE COLUMN IF EXISTS `airport_in` `airportDepartureFk` varchar(3) NOT NULL;