Fix upgrade script to keep existing enum_data [TUS-3114]
Add indices to course_user and course_user_site
Optimize the query for HSDB45::Course:user_primary_role
Assume eval type to be course by default [TUS-3117]