-- Revert AUDIO question type changes

-- 1. Drop question_audio_answers table
DROP TABLE IF EXISTS question_audio_answers CASCADE;

-- 2. Remove image_url column
ALTER TABLE questions DROP COLUMN IF EXISTS image_url;

-- 3. Revert question_type CHECK constraint
ALTER TABLE questions
  DROP CONSTRAINT IF EXISTS questions_question_type_check;

ALTER TABLE questions
  ADD CONSTRAINT questions_question_type_check
  CHECK (question_type IN ('MCQ', 'TRUE_FALSE', 'SHORT_ANSWER'));
