diff --git a/updater/sis-updater-worker/src/db/migrations/20240919_00_add_index_to_enrollments.js b/updater/sis-updater-worker/src/db/migrations/20240919_00_add_index_to_enrollments.js new file mode 100644 index 0000000000..06d4159b3e --- /dev/null +++ b/updater/sis-updater-worker/src/db/migrations/20240919_00_add_index_to_enrollments.js @@ -0,0 +1,8 @@ +module.exports = { + up: async queryInterface => { + await queryInterface.addIndex('enrollment', ['course_id']) + }, + down: async queryInterface => { + await queryInterface.removeIndex('enrollment', ['course_id']) + }, +}