salix/db/versions/.archive/10640-redPalmetto/04-supplierFkDrop.sql

27 lines
2.1 KiB
SQL

ALTER TABLE vn.`budget` DROP FOREIGN KEY IF EXISTS `budgetSupplier_Fk`;
ALTER TABLE vn.`supplierContact` DROP FOREIGN KEY IF EXISTS `supplierContactSupplier_Fk`;
ALTER TABLE vn.`entry` DROP FOREIGN KEY IF EXISTS `entrySupplier_Fk`;
ALTER TABLE vn.`payment` DROP FOREIGN KEY IF EXISTS `paymentSupplier_Fk`;
ALTER TABLE vn.`travelClonedWeekly` DROP FOREIGN KEY IF EXISTS `travelClonedWeeklySupplier_Fk`;
ALTER TABLE vn.`invoiceIn` DROP FOREIGN KEY IF EXISTS `invoiceInSupplier_Fk`;
ALTER TABLE vn.`sinister` DROP FOREIGN KEY IF EXISTS `sinisterSupplier_Fk`;
ALTER TABLE vn.`company` DROP FOREIGN KEY IF EXISTS `company_FK`;
ALTER TABLE vn.`comparativeFilter` DROP FOREIGN KEY IF EXISTS `comparativeFilterSupplier_Fk`;
ALTER TABLE vn.`supplierExpense` DROP FOREIGN KEY IF EXISTS `supplierExpenseSupplier_Fk`;
ALTER TABLE vn.`supplierAccount` DROP FOREIGN KEY IF EXISTS `supplierAccountSupplier_Fk`;
ALTER TABLE vn.`roadmap` DROP FOREIGN KEY IF EXISTS `roadmapSupplier_Fk`;
ALTER TABLE vn.`awb` DROP FOREIGN KEY IF EXISTS `awbSupplier_Fk`;
ALTER TABLE vn.`awb` DROP FOREIGN KEY IF EXISTS `awbSupplier_Fk`;
ALTER TABLE vn.`supplierLog` DROP FOREIGN KEY IF EXISTS `supplierLogSupplier_Fk`;
ALTER TABLE vn.`cmr` DROP FOREIGN KEY IF EXISTS `cmrSupplier_Fk`;
ALTER TABLE vn.`duaTax` DROP FOREIGN KEY IF EXISTS `duaTaxSupplier_Fk`;
ALTER TABLE vn.`supplierAgencyTerm` DROP FOREIGN KEY IF EXISTS `supplierAgencyTermSupplier_Fk`;
ALTER TABLE vn.`machine` DROP FOREIGN KEY IF EXISTS `machineSupplier_Fk`;
ALTER TABLE vn2008.`travel_pattern` DROP FOREIGN KEY IF EXISTS `travel_patternSupplier_Fk`;
ALTER TABLE vn2008.`Bancos_poliza` DROP FOREIGN KEY IF EXISTS `Bancos_polizaSupplier_Fk`;
ALTER TABLE vn2008.`Bancos_poliza` DROP FOREIGN KEY IF EXISTS `Bancos_polizaSupplier_Fk1`;
ALTER TABLE vn2008.`Vehiculos_consumo` DROP FOREIGN KEY IF EXISTS `Vehiculos_consumoSupplier_Fk`;
ALTER TABLE vn2008.`albaran` DROP FOREIGN KEY IF EXISTS `albaranSupplier_Fk`;
ALTER TABLE vn2008.`Proveedores_cargueras` DROP FOREIGN KEY IF EXISTS `Proveedores_carguerasSupplier_Fk`;
ALTER TABLE vn2008.`Proveedores_comunicados` DROP FOREIGN KEY IF EXISTS `Proveedores_comunicadosSupplier_Fk`;