Reject creating a second practice on the same course, module, or lesson with 409 Conflict, and enforce the rule in the database via unique partial indexes. Co-authored-by: Cursor <cursoragent@cursor.com>
4 lines
165 B
SQL
4 lines
165 B
SQL
DROP INDEX IF EXISTS idx_lms_practices_one_per_lesson;
|
|
DROP INDEX IF EXISTS idx_lms_practices_one_per_module;
|
|
DROP INDEX IF EXISTS idx_lms_practices_one_per_course;
|