ALTER TABLE IF EXISTS `vn2008`.`awb_component` RENAME `vn`.`awbComponent`; ALTER TABLE IF EXISTS `vn`.`awbComponent` CHANGE COLUMN IF EXISTS `awb_id` `awbFk` smallint(11) unsigned DEFAULT NULL, CHANGE COLUMN IF EXISTS `Id_Proveedor` `supplierFk` int(11) NOT NULL, CHANGE COLUMN IF EXISTS `Fecha` `dated__` date NOT NULL, CHANGE COLUMN IF EXISTS `awb_component_type_id` `typeFk` mediumint(3) unsigned DEFAULT NULL, CHANGE COLUMN IF EXISTS `awb_role_id` `awbRoleFk` tinyint(1) unsigned NOT NULL DEFAULT 1, CHANGE COLUMN IF EXISTS `awb_unit_id` `awbUnitFk` varchar(10) DEFAULT NULL, CHANGE COLUMN IF EXISTS `Id_Moneda` `currencyFk` tinyint(3) unsigned NOT NULL DEFAULT 2, CHANGE COLUMN IF EXISTS `recibida_id` `invoiceInFk` mediumint(8) unsigned DEFAULT NULL;