Skip to content

Commit d461d76

Browse files
committed
Rebase migrations in preparation for 3.70
fixes #774
1 parent e2a6ecd commit d461d76

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

CHANGES/774.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Rebase migrations to prepare for pulpcore 3.70.

pulp_python/app/migrations/0001_initial.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Generated by Django 2.2.3 on 2020-06-18 13:55
1+
# Generated by Django 4.2.16 on 2024-12-11 16:42
22

33
import django.contrib.postgres.fields.jsonb
44
from django.db import migrations, models
@@ -10,14 +10,14 @@ class Migration(migrations.Migration):
1010
initial = True
1111

1212
dependencies = [
13-
('core', '0032_export_to_chunks'),
13+
('core', '0091_systemid'),
1414
]
1515

1616
operations = [
1717
migrations.CreateModel(
1818
name='PythonPublication',
1919
fields=[
20-
('publication_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, related_name='python_pythonpublication', serialize=False, to='core.Publication')),
20+
('publication_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, related_name='python_pythonpublication', serialize=False, to='core.publication')),
2121
],
2222
options={
2323
'default_related_name': '%(app_label)s_%(model_name)s',
@@ -27,7 +27,7 @@ class Migration(migrations.Migration):
2727
migrations.CreateModel(
2828
name='PythonRemote',
2929
fields=[
30-
('remote_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, related_name='python_pythonremote', serialize=False, to='core.Remote')),
30+
('remote_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, related_name='python_pythonremote', serialize=False, to='core.remote')),
3131
('prereleases', models.BooleanField(default=False)),
3232
('includes', django.contrib.postgres.fields.jsonb.JSONField(default=list)),
3333
('excludes', django.contrib.postgres.fields.jsonb.JSONField(default=list)),
@@ -40,7 +40,7 @@ class Migration(migrations.Migration):
4040
migrations.CreateModel(
4141
name='PythonRepository',
4242
fields=[
43-
('repository_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, related_name='python_pythonrepository', serialize=False, to='core.Repository')),
43+
('repository_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, related_name='python_pythonrepository', serialize=False, to='core.repository')),
4444
],
4545
options={
4646
'default_related_name': '%(app_label)s_%(model_name)s',
@@ -50,7 +50,7 @@ class Migration(migrations.Migration):
5050
migrations.CreateModel(
5151
name='PythonPackageContent',
5252
fields=[
53-
('content_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, related_name='python_pythonpackagecontent', serialize=False, to='core.Content')),
53+
('content_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, related_name='python_pythonpackagecontent', serialize=False, to='core.content')),
5454
('filename', models.TextField(db_index=True, unique=True)),
5555
('packagetype', models.TextField(choices=[('bdist_dmg', 'bdist_dmg'), ('bdist_dumb', 'bdist_dumb'), ('bdist_egg', 'bdist_egg'), ('bdist_msi', 'bdist_msi'), ('bdist_rpm', 'bdist_rpm'), ('bdist_wheel', 'bdist_wheel'), ('bdist_wininst', 'bdist_wininst'), ('sdist', 'sdist')])),
5656
('name', models.TextField()),
@@ -85,8 +85,8 @@ class Migration(migrations.Migration):
8585
migrations.CreateModel(
8686
name='PythonDistribution',
8787
fields=[
88-
('basedistribution_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, related_name='python_pythondistribution', serialize=False, to='core.BaseDistribution')),
89-
('publication', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='python_pythondistribution', to='core.Publication')),
88+
('basedistribution_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, related_name='python_pythondistribution', serialize=False, to='core.basedistribution')),
89+
('publication', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='python_pythondistribution', to='core.publication')),
9090
],
9191
options={
9292
'default_related_name': '%(app_label)s_%(model_name)s',

pulp_python/app/migrations/0004_DATA_swap_distribution_model.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ class Migration(migrations.Migration):
4848
atomic = False
4949

5050
dependencies = [
51-
('core', '0062_add_new_distribution_mastermodel'),
5251
('python', '0003_new_sync_filters'),
5352
]
5453

0 commit comments

Comments
 (0)