-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplified the constraint for unique templates to only the template n…
…ame since that is what templates are referenced by
- Loading branch information
1 parent
dccc377
commit 4a46030
Showing
4 changed files
with
25 additions
and
7 deletions.
There are no files selected for viewing
6 changes: 0 additions & 6 deletions
6
...services/evaluationservice/dmod/evaluationservice/evaluation_service/commands/__init__.py
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...aluationservice/dmod/evaluationservice/evaluation_service/management/commands/__init__.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,3 @@ | ||
""" | ||
Provides custom CLI commands for the evaluation service | ||
""" |
21 changes: 21 additions & 0 deletions
21
...tion_service/migrations/0007_remove_specificationtemplate_unique_template_idx_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,21 @@ | ||
# Generated by Django 4.2.5 on 2023-11-01 20:28 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('evaluation_service', '0006_specificationtemplate_template_last_modified'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveConstraint( | ||
model_name='specificationtemplate', | ||
name='unique_template_idx', | ||
), | ||
migrations.AddConstraint( | ||
model_name='specificationtemplate', | ||
constraint=models.UniqueConstraint(fields=('template_name',), name='unique_template_idx'), | ||
), | ||
] |
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