From cff3ed8b49e6783e4142918d9a2977715f78075e Mon Sep 17 00:00:00 2001 From: Matthias Dellweg Date: Thu, 5 Dec 2024 17:19:11 +0100 Subject: [PATCH] Squash migrations before 0.1 fixes #334 --- CHANGES/334.removal | 1 + ...005_rename_gemcontent_shallowgemcontent.py | 126 ++++++++++++++++++ 2 files changed, 127 insertions(+) create mode 100644 CHANGES/334.removal create mode 100644 pulp_gem/app/migrations/0001_initial_squashed_0005_rename_gemcontent_shallowgemcontent.py diff --git a/CHANGES/334.removal b/CHANGES/334.removal new file mode 100644 index 00000000..b5a12b67 --- /dev/null +++ b/CHANGES/334.removal @@ -0,0 +1 @@ +Squashed very old migrations (before the 0.1 release) to prepare for pulpcore 3.70 compatibility. diff --git a/pulp_gem/app/migrations/0001_initial_squashed_0005_rename_gemcontent_shallowgemcontent.py b/pulp_gem/app/migrations/0001_initial_squashed_0005_rename_gemcontent_shallowgemcontent.py new file mode 100644 index 00000000..ba0f017e --- /dev/null +++ b/pulp_gem/app/migrations/0001_initial_squashed_0005_rename_gemcontent_shallowgemcontent.py @@ -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",), + ), + ]