Skip to content

Commit cb8f916

Browse files
committed
add model migration
Signed-off-by: tdruez <tdruez@aboutcode.org>
1 parent f55e9bd commit cb8f916

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Generated by Django 6.0.6 on 2026-07-22 13:35
2+
3+
import django.utils.timezone
4+
from django.db import migrations, models
5+
6+
7+
class Migration(migrations.Migration):
8+
9+
dependencies = [
10+
('product_portfolio', '0018_productpolicyviolation'),
11+
]
12+
13+
operations = [
14+
migrations.AddField(
15+
model_name='productaffectedbyvulnerability',
16+
name='detected_date',
17+
field=models.DateTimeField(auto_now_add=True, default=django.utils.timezone.now, help_text='Date and time when this vulnerability was first detected on this object. Used to measure how long a vulnerability has remained unaddressed. Defaults to the time the record was created.'),
18+
preserve_default=False,
19+
),
20+
]

0 commit comments

Comments
 (0)