forked from pulp/pulp_container
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
497 additions
and
114 deletions.
There are no files selected for viewing
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 @@ | ||
Created a new artifactless ConfigBlob model. |
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
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
57 changes: 57 additions & 0 deletions
57
pulp_container/app/migrations/0039_artifactless_config_blob.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,57 @@ | ||
# Generated by Django 4.2.10 on 2024-04-03 10:54 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('container', '0038_add_manifest_metadata_fields'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='manifest', | ||
name='config_blob', | ||
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='config', to='container.blob'), | ||
), | ||
migrations.CreateModel( | ||
name='ConfigBlob', | ||
fields=[ | ||
('content_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='core.content')), | ||
('data', models.TextField()), | ||
('architecture', models.TextField()), | ||
('os', models.TextField()), | ||
('rootfs', models.JSONField(default=dict)), | ||
('digest', models.TextField(db_index=True)), | ||
('created', models.DateTimeField()), | ||
('author', models.TextField(blank=True, default='')), | ||
('os_version', models.TextField(blank=True, default='')), | ||
('os_features', models.TextField(blank=True, default='')), | ||
('variant', models.TextField(blank=True, default='')), | ||
('config', models.JSONField(default=dict)), | ||
('history', models.JSONField(default=dict)), | ||
], | ||
options={ | ||
'default_related_name': '%(app_label)s_%(model_name)s', | ||
'unique_together': {('digest',)}, | ||
}, | ||
bases=('core.content',), | ||
), | ||
migrations.AddField( | ||
model_name='containerpushrepository', | ||
name='pending_config_blobs', | ||
field=models.ManyToManyField(to='container.configblob'), | ||
), | ||
migrations.AddField( | ||
model_name='containerrepository', | ||
name='pending_config_blobs', | ||
field=models.ManyToManyField(to='container.configblob'), | ||
), | ||
migrations.AddField( | ||
model_name='manifest', | ||
name='config', | ||
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='config_blob', to='container.configblob'), | ||
), | ||
] |
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
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
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
Oops, something went wrong.