salix/db/versions/.archive/10370-pinkBirch/00-deleteForeignKey.sql

46 lines
1.1 KiB
SQL

ALTER TABLE `vn`.`item`
DROP FOREIGN KEY IF EXISTS `item_ibfk_4`;
ALTER TABLE `vn`.`address`
DROP FOREIGN KEY IF EXISTS `address_ibfk_1`;
ALTER TABLE `vn`.`agency`
DROP FOREIGN KEY IF EXISTS `agency_ibfk_2`;
ALTER TABLE `vn`.`claim`
DROP FOREIGN KEY IF EXISTS `claim_ibfk_4`;
ALTER TABLE `vn`.`host`
DROP FOREIGN KEY IF EXISTS `configHost_FK_1`;
ALTER TABLE `vn`.`ticket`
DROP FOREIGN KEY IF EXISTS `tickets_fk11`;
ALTER TABLE `vn`.`zone`
DROP FOREIGN KEY IF EXISTS `fk_zone_1`;
ALTER TABLE `vn`.`floramondoConfig`
DROP FOREIGN KEY IF EXISTS `floramondoConfigWarehouseOutFk`,
DROP FOREIGN KEY IF EXISTS `floramondoConfigAgencyModeFk`;
ALTER TABLE `postgresql`.`province`
DROP FOREIGN KEY IF EXISTS `fk_province_nation1`;
ALTER TABLE `vn`.`person__`
DROP FOREIGN KEY `Person_ibfk_1`;
ALTER TABLE `postgresql`.`profile__`
DROP FOREIGN KEY IF EXISTS `profile_workerFk`;
ALTER TABLE `postgresql`.`profile_media`
DROP FOREIGN KEY IF EXISTS `media_ibfk_20`;
ALTER TABLE `postgresql`.`erte_COVID19`
DROP FOREIGN KEY IF EXISTS `erte_COVID19_FK`;
ALTER TABLE `vn`.`contratos_subvencion_270619`
DROP FOREIGN KEY IF EXISTS `contratos_subvencion_270619_fk3`;