DROP TRIGGER IF EXISTS trg_sub_courses_create_entry_assessment ON sub_courses;
DROP FUNCTION IF EXISTS create_sub_course_entry_assessment();
DROP FUNCTION IF EXISTS clone_default_initial_assessment_items(BIGINT);

DROP INDEX IF EXISTS idx_question_sets_unique_subcourse_initial_assessment;
DROP INDEX IF EXISTS idx_sub_courses_level_sub_level;

ALTER TABLE sub_courses
DROP CONSTRAINT IF EXISTS sub_courses_level_sub_level_check;

ALTER TABLE sub_courses
DROP COLUMN IF EXISTS sub_level;
