1BEGIN; 2 ALTER TABLE resource_types 3 DROP CONSTRAINT resource_types_resource_config_id_fkey, 4 ADD CONSTRAINT resource_types_resource_config_id_fkey FOREIGN KEY (resource_config_id) REFERENCES resource_configs(id) ON DELETE SET NULL; 5COMMIT; 6
1BEGIN; 2 ALTER TABLE resource_types 3 DROP CONSTRAINT resource_types_resource_config_id_fkey, 4 ADD CONSTRAINT resource_types_resource_config_id_fkey FOREIGN KEY (resource_config_id) REFERENCES resource_configs(id) ON DELETE SET NULL; 5COMMIT; 6