-- Deploy gaia:api_2017_07_26_alter_table_api_slide to mysql

BEGIN;

ALTER TABLE `api_slide` ADD COLUMN `column_id` integer;
ALTER TABLE `api_slide` ADD CONSTRAINT `column_id_refs_id_3baa5244` FOREIGN KEY (`column_id`) REFERENCES `api_columnist` (`id`);

ALTER TABLE `api_slide` ADD COLUMN `question_id` integer;
ALTER TABLE `api_slide` ADD CONSTRAINT `question_id_refs_id_25110688` FOREIGN KEY (`question_id`) REFERENCES `api_question` (`id`);

ALTER TABLE `api_slide` ADD COLUMN `answer_id` integer;
ALTER TABLE `api_slide` ADD CONSTRAINT `answer_id_refs_id_5b4ce3ea` FOREIGN KEY (`answer_id`) REFERENCES `api_answer` (`id`);

COMMIT;
