-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9a00b62
commit 080e467
Showing
2 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
core/migrations/0020_alter_logicpuzzlehint_qr_index_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Generated by Django 4.1.13 on 2023-12-06 17:22 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("core", "0019_hunt_remove_team_is_active_remove_user_team_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="logicpuzzlehint", | ||
name="qr_index", | ||
field=models.IntegerField( | ||
help_text="The index of the QR code that this hint is for, that is everyone on their nth QR code will get same same hint (starting from 1)" | ||
), | ||
), | ||
migrations.AddConstraint( | ||
model_name="logicpuzzlehint", | ||
constraint=models.UniqueConstraint( | ||
fields=("qr_index", "hunt"), name="unique_qr_index_name_per_hunt" | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters