15 lines
1.1 KiB
SQL
15 lines
1.1 KiB
SQL
ALTER TABLE IF EXISTS `vn2008`.`awb_component_template` RENAME `vn`.`awbComponentTemplate`;
|
|
|
|
ALTER TABLE IF EXISTS `vn`.`awbComponentTemplate`
|
|
CHANGE COLUMN IF EXISTS `awb_component_template_id` `id` int(11) NOT NULL AUTO_INCREMENT,
|
|
CHANGE COLUMN IF EXISTS `carguera_id` `freightFk` int(11) DEFAULT NULL,
|
|
CHANGE COLUMN IF EXISTS `airport_in` `airportIn` varchar(3) DEFAULT NULL,
|
|
CHANGE COLUMN IF EXISTS `airport_out` `airportOut` varchar(3) DEFAULT NULL,
|
|
CHANGE COLUMN IF EXISTS `airline_id` `airlineFk` smallint(2) unsigned DEFAULT NULL,
|
|
CHANGE COLUMN IF EXISTS `awb_component_type_id` `typeFk` mediumint(3) unsigned NOT NULL,
|
|
CHANGE COLUMN IF EXISTS `Fecha` `dated` date NOT NULL,
|
|
CHANGE COLUMN IF EXISTS `awb_role_id` `awbRoleFk` tinyint(1) unsigned NOT NULL,
|
|
CHANGE COLUMN IF EXISTS `awb_unit_id` `awbUnit` varchar(10) DEFAULT NULL,
|
|
CHANGE COLUMN IF EXISTS `max_value` `maxValue` decimal(10,2) unsigned DEFAULT NULL,
|
|
CHANGE COLUMN IF EXISTS `min_value` `minValue` decimal(10,2) unsigned DEFAULT NULL,
|
|
CHANGE COLUMN IF EXISTS `Id_Moneda` `currencyFk` tinyint(3) unsigned NOT NULL DEFAULT 2 |