chore: issue type migration
This commit is contained in:
parent
033e7703b4
commit
edb04a33fd
2 changed files with 7 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ import uuid
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
('db', '0073_alter_commentreaction_unique_together_and_more'),
|
("db", "0073_alter_commentreaction_unique_together_and_more"),
|
||||||
]
|
]
|
||||||
|
|
||||||
operations = [
|
operations = [
|
||||||
|
|
@ -173,4 +173,9 @@ class Migration(migrations.Migration):
|
||||||
name="is_default",
|
name="is_default",
|
||||||
field=models.BooleanField(default=False),
|
field=models.BooleanField(default=False),
|
||||||
),
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name="issuetype",
|
||||||
|
name="level",
|
||||||
|
field=models.PositiveIntegerField(default=0),
|
||||||
|
),
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,7 @@ class IssueType(BaseModel):
|
||||||
logo_props = models.JSONField(default=dict)
|
logo_props = models.JSONField(default=dict)
|
||||||
is_default = models.BooleanField(default=False)
|
is_default = models.BooleanField(default=False)
|
||||||
is_active = models.BooleanField(default=True)
|
is_active = models.BooleanField(default=True)
|
||||||
|
level = models.PositiveIntegerField(default=0)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
unique_together = ["workspace", "name", "deleted_at"]
|
unique_together = ["workspace", "name", "deleted_at"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue