-- Revert gaia:organzitaion_2016_04_29_alter_api_organization_image from mysql

BEGIN;

-- XXX Add DDLs here.
ALTER TABLE `api_organization_image` DROP FOREIGN KEY `hospital_id_refs_id_ff32d54c`;

alter table api_organization_image modify hospital_id varchar(100) not null;


ALTER TABLE `api_organization_image` ADD CONSTRAINT `hospital_id_refs_id_ff32d54c` FOREIGN KEY (`hospital_id`) REFERENCES `api_hospital` (`id`);

COMMIT;
