Skip to content

Commit

Permalink
Squash migrations before 0.1
Browse files Browse the repository at this point in the history
fixes #334
  • Loading branch information
mdellweg committed Dec 6, 2024
1 parent 7302fa9 commit cff3ed8
Show file tree
Hide file tree
Showing 2 changed files with 127 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES/334.removal
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Squashed very old migrations (before the 0.1 release) to prepare for pulpcore 3.70 compatibility.
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
# Generated by Django 4.2.16 on 2024-12-05 16:18

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

replaces = [
("gem", "0001_initial"),
("gem", "0002_gemrepository"),
("gem", "0003_move_data_to_new_master_distribution_model"),
("gem", "0004_alter_gemcontent_content_ptr_and_more"),
("gem", "0005_rename_gemcontent_shallowgemcontent"),
]

dependencies = [
("core", "0091_systemid"),
("core", "0106_alter_artifactdistribution_distribution_ptr_and_more"),
]

operations = [
migrations.CreateModel(
name="GemPublication",
fields=[
(
"publication_ptr",
models.OneToOneField(
auto_created=True,
on_delete=django.db.models.deletion.CASCADE,
parent_link=True,
primary_key=True,
serialize=False,
to="core.publication",
),
),
],
options={
"default_related_name": "%(app_label)s_%(model_name)s",
},
bases=("core.publication",),
),
migrations.CreateModel(
name="GemRemote",
fields=[
(
"remote_ptr",
models.OneToOneField(
auto_created=True,
on_delete=django.db.models.deletion.CASCADE,
parent_link=True,
primary_key=True,
serialize=False,
to="core.remote",
),
),
],
options={
"default_related_name": "%(app_label)s_%(model_name)s",
},
bases=("core.remote",),
),
migrations.CreateModel(
name="GemRepository",
fields=[
(
"repository_ptr",
models.OneToOneField(
auto_created=True,
on_delete=django.db.models.deletion.CASCADE,
parent_link=True,
primary_key=True,
serialize=False,
to="core.repository",
),
),
],
options={
"default_related_name": "%(app_label)s_%(model_name)s",
},
bases=("core.repository",),
),
migrations.CreateModel(
name="ShallowGemContent",
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",
),
),
("name", models.TextField()),
("version", models.TextField()),
],
options={
"default_related_name": "%(app_label)s_%(model_name)s",
"unique_together": {("name", "version")},
},
bases=("core.content",),
),
migrations.CreateModel(
name="GemDistribution",
fields=[
(
"distribution_ptr",
models.OneToOneField(
auto_created=True,
on_delete=django.db.models.deletion.CASCADE,
parent_link=True,
primary_key=True,
serialize=False,
to="core.distribution",
),
),
],
options={
"default_related_name": "%(app_label)s_%(model_name)s",
},
bases=("core.basedistribution",),
),
]

0 comments on commit cff3ed8

Please sign in to comment.