CTFd/migrations/versions
Kevin Chung d2f8b4090d
Adds ondelete='CASCADE' to some models. (#979)
* Fixes `populate.py` to assign captains to teams.
* Adds `ondelete='CASCADE'` to most ForeignKeys in models
    * Closes #794 
* Test reset in team mode to test removing teams with captains
* Test deleting users/teams with awards to test cascading deletion
* `gen_team()` test helper now creates users for the team and assigns the first one as captain
* Added `Challenges.flags` relationship and moved the `Flags.challenge` relationship to a backref on `Challenges`
2019-05-04 02:08:26 -04:00
..
4e4d5a9ea000_add_type_to_awards.py 2.1.0 (#957) 2019-04-17 01:36:30 -04:00
8369118943a1_initial_revision.py 2.1.0 (#957) 2019-04-17 01:36:30 -04:00
b295b033364d_add_ondelete_cascade_to_foreign_keys.py Adds ondelete='CASCADE' to some models. (#979) 2019-05-04 02:08:26 -04:00
b5551cd26764_add_captain_column_to_teams.py 2.1.0 (#957) 2019-04-17 01:36:30 -04:00