Skip to content

Commit f3ef283

Browse files
committed
Staging migrations
Signed-off-by: Keshav Priyadarshi <git@keshav.space>
1 parent 6130597 commit f3ef283

File tree

2 files changed

+31
-16
lines changed

2 files changed

+31
-16
lines changed

vulnerabilities/migrations/0092_pipelineschedule_pipelinerun.py

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Generated by Django 4.2.20 on 2025-05-21 19:32
1+
# Generated by Django 4.2.20 on 2025-05-12 17:04
22

33
import django.core.validators
44
from django.db import migrations, models
@@ -65,21 +65,6 @@ class Migration(migrations.Migration):
6565
unique=True,
6666
),
6767
),
68-
(
69-
"execution_timeout",
70-
models.PositiveSmallIntegerField(
71-
default=24,
72-
help_text="Number hours before pipeline execution is forcefully terminated.",
73-
validators=[
74-
django.core.validators.MinValueValidator(
75-
1, message="Pipeline timeout must be at least 1 hour."
76-
),
77-
django.core.validators.MaxValueValidator(
78-
72, message="Pipeline timeout must be at most 72 hours."
79-
),
80-
],
81-
),
82-
),
8368
("created_date", models.DateTimeField(auto_now_add=True, db_index=True)),
8469
],
8570
options={
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Generated by Django 4.2.20 on 2025-05-21 19:56
2+
3+
import django.core.validators
4+
from django.db import migrations, models
5+
6+
7+
class Migration(migrations.Migration):
8+
9+
dependencies = [
10+
("vulnerabilities", "0092_pipelineschedule_pipelinerun"),
11+
]
12+
13+
operations = [
14+
migrations.AddField(
15+
model_name="pipelineschedule",
16+
name="execution_timeout",
17+
field=models.PositiveSmallIntegerField(
18+
default=24,
19+
help_text="Number hours before pipeline execution is forcefully terminated.",
20+
validators=[
21+
django.core.validators.MinValueValidator(
22+
1, message="Pipeline timeout must be at least 1 hour."
23+
),
24+
django.core.validators.MaxValueValidator(
25+
72, message="Pipeline timeout must be at most 72 hours."
26+
),
27+
],
28+
),
29+
),
30+
]

0 commit comments

Comments
 (0)