salix/db/versions/10835-brownCarnation/25-awb_recibida.sql

9 lines
392 B
SQL

DROP TRIGGER IF EXISTS vn2008.awb_recibida_afterDelete;
ALTER TABLE IF EXISTS `vn2008`.`awb_recibida` RENAME `vn`.`awbInvoiceIn`;
ALTER TABLE IF EXISTS `vn`.`awbInvoiceIn`
CHANGE COLUMN IF EXISTS `awb_id` `awbFk` smallint(5) unsigned NOT NULL,
CHANGE COLUMN IF EXISTS `recibida_id` `invoiceInFk` mediumint(8) unsigned NOT NULL,
CHANGE COLUMN IF EXISTS `dua` `sad` varchar(18) DEFAULT NULL;