Skip to content

Commit a150776

Browse files
committed
Store pipeline version in run instance
Signed-off-by: Keshav Priyadarshi <[email protected]>
1 parent 956791e commit a150776

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated by Django 4.2.22 on 2025-10-20 14:26
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
("vulnerabilities", "0102_alter_impactedpackage_affecting_vers_and_more"),
10+
]
11+
12+
operations = [
13+
migrations.AddField(
14+
model_name="pipelinerun",
15+
name="pipeline_version",
16+
field=models.CharField(blank=True, db_index=True, max_length=100, null=True),
17+
),
18+
]

vulnerabilities/models.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1973,6 +1973,13 @@ class PipelineRun(models.Model):
19731973
on_delete=models.CASCADE,
19741974
)
19751975

1976+
pipeline_version = models.CharField(
1977+
max_length=100,
1978+
blank=True,
1979+
null=True,
1980+
db_index=True,
1981+
)
1982+
19761983
run_id = models.UUIDField(
19771984
primary_key=True,
19781985
default=uuid.uuid4,

0 commit comments

Comments
 (0)