generated from aboutcode-org/skeleton
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add package_sets field to Package #95
Signed-off-by: Jono Yang <jyang@nexb.com>
- Loading branch information
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
packagedb/migrations/0068_alter_resource_options_package_package_sets.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Generated by Django 4.1.2 on 2023-06-24 00:37 | ||
|
||
import django.contrib.postgres.fields | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("packagedb", "0067_alter_resource_md5_alter_resource_sha1_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name="resource", | ||
options={}, | ||
), | ||
migrations.AddField( | ||
model_name="package", | ||
name="package_sets", | ||
field=django.contrib.postgres.fields.ArrayField( | ||
base_field=models.UUIDField(blank=True, null=True), | ||
blank=True, | ||
default=list, | ||
help_text="A list of package_set UUIDs that identifies which groups this Package is related to", | ||
null=True, | ||
size=None, | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters