-- Revert gaia:launch_2020_01_09_create_table from mysql

BEGIN;

-- XXX Add DDLs here.

ALTER TABLE `api_questionnaire_answer` DROP COLUMN `is_force_display`;
ALTER TABLE `api_questionnaire_answer` ADD CONSTRAINT `questionnaire_question_id_refs_id_e64a5250` FOREIGN KEY (`questionnaire_question_id`) REFERENCES `api_questionnaire_question` (`id`);

DROP TABLE `api_questionnaire_theme_and_question_relations`;
DROP TABLE `api_questionnaire_qa_sub_relations`;
DROP TABLE `api_questionnaire_questions`;

COMMIT;
