Open
Conversation
SamNie2027
requested changes
Feb 17, 2026
Collaborator
SamNie2027
left a comment
There was a problem hiding this comment.
There are errors when running the migration because you are attempting to recreate things that were present in the previous migrations; please remove the lines that try to recreate the tables that aren't the disciplines.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ℹ️ Issue
Closes #173
📝 Description
I regenerated the migrations for discipline.
✔️ Verification
I don't have a picture before

\dtwithout discipline since it existed before but here it is after:Test GET endpoint to get the whole table:

Test GET endpoint to get a discipline:

Test POST endpoint to add a discipline:

Test POST endpoint to add a discipline with an admin (adds admin to existing discipline):

Test DELETE endpoint to delete a discipline with an admin:

Test DELETE endpoint to delete a discipline:

Table description:

Current state of the discipline table after seed data:

After reverting migration:

🏕️ (Optional) Future Work / Notes
The GET endpoint does not correctly reject a discipline that is not found:
