diff --git a/setup/db/schema-222to224.sql b/setup/db/schema-222to224.sql index 50bb7695106..276b018722c 100644 --- a/setup/db/schema-222to224.sql +++ b/setup/db/schema-222to224.sql @@ -36,3 +36,7 @@ ALTER TABLE `cloud`.`load_balancer` MODIFY `ip_address` char(40) NOT NULL; ALTER TABLE `cloud`.`remote_access_vpn` MODIFY `local_ip` char(40) NOT NULL; ALTER TABLE `cloud`.`storage_pool` MODIFY `host_address` char(40) NOT NULL; + +ALTER TABLE `cloud`.`networks` DROP FOREIGN KEY `fk_networks__related`; +ALTER TABLE `cloud`.`networks` ADD CONSTRAINT `fk_networks__related` FOREIGN KEY(`related`) REFERENCES `networks`(`id`) ON DELETE CASCADE; +