DROP INDEX IF EXISTS idx_sub_module_capstones_sub_module_id;
DROP TABLE IF EXISTS sub_module_capstones;

ALTER TABLE question_sets DROP CONSTRAINT IF EXISTS question_sets_set_type_check;
ALTER TABLE question_sets ADD CONSTRAINT question_sets_set_type_check
    CHECK (set_type IN (
        'PRACTICE',
        'INITIAL_ASSESSMENT',
        'QUIZ',
        'EXAM',
        'SURVEY'
    ));
