Skip to content

Commit

Permalink
Add notes field and regenerate migration file #685
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Druez <tdruez@nexb.com>
  • Loading branch information
tdruez committed Jun 1, 2023
1 parent 7889598 commit f4fa2ba
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Generated by Django 4.2 on 2023-05-09 12:38
# Generated by Django 4.2.1 on 2023-06-01 05:54

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("scanpipe", "0029_codebaseresource_scanpipe_co_type_ea1dd7_idx_and_more"),
("scanpipe", "0032_scancode_toolkit_v32_post_data_migration"),
]

operations = [
Expand All @@ -14,4 +14,9 @@ class Migration(migrations.Migration):
name="configuration",
field=models.JSONField(blank=True, default=dict),
),
migrations.AddField(
model_name="project",
name="notes",
field=models.TextField(blank=True),
),
]
1 change: 1 addition & 0 deletions scanpipe/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,7 @@ class Project(UUIDPKModel, ExtraDataFieldMixin, models.Model):
"happened during the archive operation."
),
)
notes = models.TextField(blank=True)
configuration = models.JSONField(default=dict, blank=True)

objects = ProjectQuerySet.as_manager()
Expand Down

0 comments on commit f4fa2ba

Please sign in to comment.