CTFd/migrations
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
..
versions Adds ondelete='CASCADE' to some models. (#979) 2019-05-04 02:08:26 -04:00
1_2_0_upgrade_2_0_0.py Fix wrong column name in upgrade script (#764) 2018-11-29 20:05:33 -05:00
README Marking 1.0.0 (#196) 2017-01-24 23:06:16 -05:00
alembic.ini Marking 1.0.0 (#196) 2017-01-24 23:06:16 -05:00
env.py Adopting a challenge type layout from deckar01 (#399) 2017-10-05 21:39:28 -04:00
script.py.mako Marking 1.0.0 (#196) 2017-01-24 23:06:16 -05:00

README

Generic single-database configuration.