Skip to content

Let a discipline run two curricula in the same batch year - #2005

Merged
vikrantwiz02 merged 1 commit into
FusionIIIT:prod/acad-reactfrom
vikrantwiz02:fix/batch-unique-constraint-include-curriculum
Oct 5, 2026
Merged

vikrantwiz02 merged 1 commit into
FusionIIIT:prod/acad-reactfrom
vikrantwiz02:fix/batch-unique-constraint-include-curriculum

Conversation

@vikrantwiz02

Copy link
Copy Markdown
Member

Summary

  • Batch uniqueness was only on (name, discipline, year), so a second curriculum track under the same discipline (e.g. Physics and Maths under Natural Sciences) couldn't get its own batch for the same year — creating it was rejected as a duplicate.
  • Added curriculum to the unique key so each curriculum track can have its own batch.

Test plan

  • Syntax-checked with python -m ast
  • Migration applied cleanly against a local dev DB

Batch uniqueness was only on (name, discipline, year), so a second
curriculum track under the same discipline (e.g. Physics and Maths
under Natural Sciences) couldn't get its own batch for that year.
Add curriculum to the unique key.
@vikrantwiz02
vikrantwiz02 merged commit 04453a6 into FusionIIIT:prod/acad-react Oct 5, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant