salix/db/versions/.archive/10640-redPalmetto/00-companyFkDrop.sql

37 lines
2.6 KiB
MySQL
Raw Permalink Normal View History

ALTER TABLE bs.sale DROP FOREIGN KEY IF EXISTS saleCompany_Fk;
ALTER TABLE edi.clientFHAdminNumber DROP FOREIGN KEY IF EXISTS clientFHAdminNumber_fk;
ALTER TABLE hedera.orderConfig DROP FOREIGN KEY IF EXISTS orderConfigCompany_Fk;
ALTER TABLE vn.business DROP FOREIGN KEY IF EXISTS business_companyCodeFk;
ALTER TABLE vn.clientRisk DROP FOREIGN KEY IF EXISTS clientRiskCompany_Fk;
ALTER TABLE vn.clientSample DROP FOREIGN KEY IF EXISTS clientSampleCompany_Fk;
ALTER TABLE vn.cmr DROP FOREIGN KEY IF EXISTS cmrCompany_Fk;
ALTER TABLE vn.companyI18n DROP FOREIGN KEY IF EXISTS companyI18nCompany_Fk;
ALTER TABLE vn.dms DROP FOREIGN KEY IF EXISTS dmsCompany_Fk;
ALTER TABLE vn.dua DROP FOREIGN KEY IF EXISTS duaCompany_Fk;
ALTER TABLE vn.entry DROP FOREIGN KEY IF EXISTS entryCompany_Fk;
ALTER TABLE vn.farming DROP FOREIGN KEY IF EXISTS farmingCompany_Fk;
ALTER TABLE vn.host DROP FOREIGN KEY IF EXISTS hostCompany_Fk;
ALTER TABLE vn.invoiceIn DROP FOREIGN KEY IF EXISTS invoiceInCompany_Fk;
ALTER TABLE vn.invoiceOut DROP FOREIGN KEY IF EXISTS invoiceOutCompany_Fk;
ALTER TABLE vn.mandate DROP FOREIGN KEY IF EXISTS mandateCompany_Fk;
ALTER TABLE vn.payment DROP FOREIGN KEY IF EXISTS paymentCompany_Fk;
ALTER TABLE vn.ppe DROP FOREIGN KEY IF EXISTS ppeCompany_Fk;
ALTER TABLE vn.project DROP FOREIGN KEY IF EXISTS projectCompany_Fk;
ALTER TABLE vn.property DROP FOREIGN KEY IF EXISTS propertyCompany_Fk;
ALTER TABLE vn.receipt DROP FOREIGN KEY IF EXISTS receiptCompany_Fk;
ALTER TABLE vn.routeConfig DROP FOREIGN KEY IF EXISTS routeConfigCompany_Fk;
ALTER TABLE vn.sinister DROP FOREIGN KEY IF EXISTS sinisterCompany_Fk;
ALTER TABLE vn.supplierExpense DROP FOREIGN KEY IF EXISTS supplierExpenseCompany_Fk;
ALTER TABLE vn.ticket DROP FOREIGN KEY IF EXISTS ticketCompany_Fk;
ALTER TABLE vn.vehicle DROP FOREIGN KEY IF EXISTS vehicleCompany_Fk;
ALTER TABLE vn.XDiario DROP FOREIGN KEY IF EXISTS XDiarioCompany_Fk;
ALTER TABLE vn2008.albaran DROP FOREIGN KEY IF EXISTS albaranCompany_Fk;
ALTER TABLE vn2008.Bancos_poliza DROP FOREIGN KEY IF EXISTS Bancos_polizaCompany_Fk;
ALTER TABLE vn2008.Clientes_empresa DROP FOREIGN KEY IF EXISTS Clientes_empresaCompany_Fk;
ALTER TABLE vn2008.`Enlaces Facturas__` DROP FOREIGN KEY IF EXISTS EnlacesFacturas__Company_Fk;
ALTER TABLE vn2008.pago_sdc DROP FOREIGN KEY IF EXISTS pago_sdcCompany_Fk;
ALTER TABLE vn2008.Permisos__ DROP FOREIGN KEY IF EXISTS PermisosCompany_Fk;
ALTER TABLE vn2008.Remesas DROP FOREIGN KEY IF EXISTS RemesasCompany_Fk;
ALTER TABLE vn2008.Saldos_Prevision DROP FOREIGN KEY IF EXISTS Saldos_PrevisionCompany_Fk;
ALTER TABLE vn.company DROP FOREIGN KEY IF EXISTS company_Fk;