diff options
author | 2019-10-08 01:22:15 +0200 | |
---|---|---|
committer | 2019-10-08 01:22:15 +0200 | |
commit | 0d383cbe925fdec97cb678c0168ecf7e90d3d729 (patch) | |
tree | 2aa529c345ffe5000452c78aedc19867b227a43c /pydis_site/templates/wiki/includes/messages.html | |
parent | Migrate undesirable active infraction to inactive (diff) |
Prevent double active infractions with constraint
https://github.com/python-discord/site/issues/273
This commits adds a UniqueConstraint for active infractions on a
combination of the `user` and `type` field. This means that a user
can only have one active infraction of a given type in the database
at any time.
I've also added tests to make sure that this behaves as expected.
Diffstat (limited to 'pydis_site/templates/wiki/includes/messages.html')
0 files changed, 0 insertions, 0 deletions