Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add triggers for challenges and stream #971

Merged
merged 1 commit into from
Aug 18, 2023
Merged

Conversation

proditis
Copy link
Collaborator

This PR does the following

  • Trigger Before Delete on player
  • Introduces echoctf player column
  • Trigger after delete challenge
  • trigger before delete challenge
  • trigger after delete on stream
  • trigger after delete on team_stream

Due to the way mariadb works triggers do not fire up for related data. These triggers make sure that the related operations are performed by individual delete commands and thus making sure the score of the player and their teams is accurate.

ensure we're clearing up scores
@proditis proditis merged commit 43dac56 into echoCTF:master Aug 18, 2023
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