While the software default course mode was correctly set to honor,
the database default was still incorrectly set to audit.
This meant that while most enrollments were registered successfully, any
that followed a code path that neglected to pass in a value for course
mode would instead rely on the database's default, which is incorrect
for our cases.
This was fixed by running makemigrations, which we presumably should
have done when we made the original change [1].
This has probably been broken all this time, potentially as far back as
December 2016.
We'll need to correct any erroneous entries with the following SQL:
UPDATE
student_courseenrollment
SET
mode = 'honor'
WHERE
mode = 'audit'
;
While the software default course mode was correctly set to
honor
, the database default was still incorrectly set toaudit
. This meant that while most enrollments were registered successfully, any that followed a code path that neglected to pass in a value for course mode would instead rely on the database's default, which is incorrect for our cases.This was fixed by running
makemigrations
, which we presumably should have done when we made the original change [1]. This has probably been broken all this time, potentially as far back as December 2016.We'll need to correct any erroneous entries with the following SQL: