ALTER TABLE IF EXISTS `vn2008`.`awb_gestdoc` RENAME `vn`.`awbDms`; ALTER TABLE IF EXISTS `vn`.`awbDms` CHANGE COLUMN IF EXISTS `awb_gestdoc_id` `id` int(11) NOT NULL AUTO_INCREMENT, CHANGE COLUMN IF EXISTS `awb_id` `awbFk` smallint(11) unsigned NOT NULL, CHANGE COLUMN IF EXISTS `gestdoc_id` `dmsFk` int(11) NOT NULL;