This repository has been archived by the owner on Jan 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate Debian content types for structured publishing
fixes #7865 https://pulp.plan.io/issues/7865
- Loading branch information
1 parent
86af5f4
commit 2eaf2ce
Showing
7 changed files
with
429 additions
and
11 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 @@ | ||
Added the ability to migrate additional Debian content types needed for structured publishing. |
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
89 changes: 89 additions & 0 deletions
89
pulp_2to3_migration/app/migrations/0022_add_structured_deb_types.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,89 @@ | ||
# Generated by Django 2.2.17 on 2021-02-08 15:40 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
import django_lifecycle.mixins | ||
import uuid | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('pulp_2to3_migration', '0021_pulp2content_add_subid'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='Pulp2DebReleaseArchitecture', | ||
fields=[ | ||
('pulp_id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), | ||
('pulp_created', models.DateTimeField(auto_now_add=True)), | ||
('pulp_last_updated', models.DateTimeField(auto_now=True, null=True)), | ||
('architecture', models.TextField()), | ||
('distribution', models.TextField()), | ||
('codename', models.TextField()), | ||
('suite', models.TextField()), | ||
('pulp2content', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='deb_release_architecture_detail_model', to='pulp_2to3_migration.Pulp2Content')), | ||
], | ||
options={ | ||
'default_related_name': 'deb_release_architecture_detail_model', | ||
'unique_together': {('architecture', 'distribution', 'codename', 'suite')}, | ||
}, | ||
bases=(django_lifecycle.mixins.LifecycleModelMixin, models.Model), | ||
), | ||
migrations.CreateModel( | ||
name='Pulp2DebRelease', | ||
fields=[ | ||
('pulp_id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), | ||
('pulp_created', models.DateTimeField(auto_now_add=True)), | ||
('pulp_last_updated', models.DateTimeField(auto_now=True, null=True)), | ||
('distribution', models.TextField()), | ||
('codename', models.TextField()), | ||
('suite', models.TextField(null=True)), | ||
('pulp2content', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='deb_release_detail_model', to='pulp_2to3_migration.Pulp2Content')), | ||
], | ||
options={ | ||
'default_related_name': 'deb_release_detail_model', | ||
'unique_together': {('codename', 'suite', 'distribution')}, | ||
}, | ||
bases=(django_lifecycle.mixins.LifecycleModelMixin, models.Model), | ||
), | ||
migrations.CreateModel( | ||
name='Pulp2DebComponentPackage', | ||
fields=[ | ||
('pulp_id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), | ||
('pulp_created', models.DateTimeField(auto_now_add=True)), | ||
('pulp_last_updated', models.DateTimeField(auto_now=True, null=True)), | ||
('package_relative_path', models.TextField()), | ||
('package_sha256', models.TextField()), | ||
('component', models.TextField()), | ||
('distribution', models.TextField()), | ||
('codename', models.TextField()), | ||
('suite', models.TextField()), | ||
('pulp2content', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='deb_component_package_detail_model', to='pulp_2to3_migration.Pulp2Content')), | ||
], | ||
options={ | ||
'default_related_name': 'deb_component_package_detail_model', | ||
'unique_together': {('package_relative_path', 'package_sha256', 'component', 'distribution', 'codename', 'suite')}, | ||
}, | ||
bases=(django_lifecycle.mixins.LifecycleModelMixin, models.Model), | ||
), | ||
migrations.CreateModel( | ||
name='Pulp2DebComponent', | ||
fields=[ | ||
('pulp_id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), | ||
('pulp_created', models.DateTimeField(auto_now_add=True)), | ||
('pulp_last_updated', models.DateTimeField(auto_now=True, null=True)), | ||
('distribution', models.TextField()), | ||
('codename', models.TextField()), | ||
('component', models.TextField()), | ||
('suite', models.TextField()), | ||
('pulp2content', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='deb_component_detail_model', to='pulp_2to3_migration.Pulp2Content')), | ||
], | ||
options={ | ||
'default_related_name': 'deb_component_detail_model', | ||
'unique_together': {('component', 'codename', 'suite', 'distribution')}, | ||
}, | ||
bases=(django_lifecycle.mixins.LifecycleModelMixin, models.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
Oops, something went wrong.