Skip to content

Commit

Permalink
changing relation ship for testcase executionresult to fix problem wh…
Browse files Browse the repository at this point in the history
…ere testcases could not have been deleted
  • Loading branch information
ooemperor committed Mar 14, 2024
1 parent 5825daf commit 9994b9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codeGrader/backend/db/ExecutionResult.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class ExecutionResult(Base):

testcase_id = Column(
Integer,
ForeignKey(TestCase.id, onupdate="CASCADE"),
ForeignKey(TestCase.id, ondelete="SET NULL", onupdate="CASCADE"),
nullable=True,
index=True
)
Expand Down

0 comments on commit 9994b9f

Please sign in to comment.