-- Deploy gaia:api_2015_11_17_add_activity_for_slide_smallimage_and_pushtask to mysql

BEGIN;

ALTER TABLE `api_pushtask` ADD COLUMN `activity_id` integer;
ALTER TABLE `api_pushtask` ADD CONSTRAINT `activity_id_refs_id_b915439e` FOREIGN KEY (`activity_id`) REFERENCES `api_activity` (`id`);

ALTER TABLE `api_slide` ADD COLUMN `activity_id` integer;
ALTER TABLE `api_slide` ADD CONSTRAINT `activity_id_refs_id_8baed6da` FOREIGN KEY (`activity_id`) REFERENCES `api_activity` (`id`);

ALTER TABLE `api_smallimage` ADD COLUMN `activity_id` integer;
ALTER TABLE `api_smallimage` ADD CONSTRAINT `activity_id_refs_id_d562832d` FOREIGN KEY (`activity_id`) REFERENCES `api_activity` (`id`);

COMMIT;
