14 lines
428 B
Python
14 lines
428 B
Python
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
dependencies = [
|
|
("graph", "0003_graphapproval"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddConstraint(
|
|
model_name="executiongraphversion",
|
|
constraint=models.UniqueConstraint(condition=models.Q(("status", "CHAMPION")), fields=("graph",), name="unique_champion_execution_graph_version"),
|
|
),
|
|
]
|