From 5863a9b76de5255fbac4b05d6c320a6197a3567b Mon Sep 17 00:00:00 2001 From: Eric Holscher <25510+ericholscher@users.noreply.github.com> Date: Tue, 12 Nov 2024 08:15:28 -0800 Subject: [PATCH] Update migration to not conflict (#11761) --- .../0131_addons_linkpreviews_fields.py | 55 ---------------- .../0132_addons_linkpreviews_fields.py | 65 +++++++++++++++++++ 2 files changed, 65 insertions(+), 55 deletions(-) delete mode 100644 readthedocs/projects/migrations/0131_addons_linkpreviews_fields.py create mode 100644 readthedocs/projects/migrations/0132_addons_linkpreviews_fields.py diff --git a/readthedocs/projects/migrations/0131_addons_linkpreviews_fields.py b/readthedocs/projects/migrations/0131_addons_linkpreviews_fields.py deleted file mode 100644 index f19b9602677..00000000000 --- a/readthedocs/projects/migrations/0131_addons_linkpreviews_fields.py +++ /dev/null @@ -1,55 +0,0 @@ -# Generated by Django 4.2.16 on 2024-11-06 09:18 - -from django.db import migrations, models -from django_safemigrate import Safe - - -class Migration(migrations.Migration): - safe = Safe.before_deploy - - dependencies = [ - ('projects', '0130_addons_remove_old_fields'), - ] - - operations = [ - migrations.AddField( - model_name='addonsconfig', - name='linkpreviews_doctool_name', - field=models.CharField(blank=True, choices=[('sphinx', 'Sphinx'), ('other', 'Other')], max_length=128, null=True), - ), - migrations.AddField( - model_name='addonsconfig', - name='linkpreviews_doctool_version', - field=models.CharField(blank=True, max_length=128, null=True), - ), - migrations.AddField( - model_name='addonsconfig', - name='linkpreviews_enabled', - field=models.BooleanField(default=False), - ), - migrations.AddField( - model_name='addonsconfig', - name='linkpreviews_root_selector', - field=models.CharField(blank=True, max_length=128, null=True), - ), - migrations.AddField( - model_name='historicaladdonsconfig', - name='linkpreviews_doctool_name', - field=models.CharField(blank=True, choices=[('sphinx', 'Sphinx'), ('other', 'Other')], max_length=128, null=True), - ), - migrations.AddField( - model_name='historicaladdonsconfig', - name='linkpreviews_doctool_version', - field=models.CharField(blank=True, max_length=128, null=True), - ), - migrations.AddField( - model_name='historicaladdonsconfig', - name='linkpreviews_enabled', - field=models.BooleanField(default=False), - ), - migrations.AddField( - model_name='historicaladdonsconfig', - name='linkpreviews_root_selector', - field=models.CharField(blank=True, max_length=128, null=True), - ), - ] diff --git a/readthedocs/projects/migrations/0132_addons_linkpreviews_fields.py b/readthedocs/projects/migrations/0132_addons_linkpreviews_fields.py new file mode 100644 index 00000000000..1a60392ff42 --- /dev/null +++ b/readthedocs/projects/migrations/0132_addons_linkpreviews_fields.py @@ -0,0 +1,65 @@ +# Generated by Django 4.2.16 on 2024-11-06 09:18 + +from django.db import migrations, models +from django_safemigrate import Safe + + +class Migration(migrations.Migration): + safe = Safe.before_deploy + + dependencies = [ + ("projects", "0131_increase_env_var_size"), + ] + + operations = [ + migrations.AddField( + model_name="addonsconfig", + name="linkpreviews_doctool_name", + field=models.CharField( + blank=True, + choices=[("sphinx", "Sphinx"), ("other", "Other")], + max_length=128, + null=True, + ), + ), + migrations.AddField( + model_name="addonsconfig", + name="linkpreviews_doctool_version", + field=models.CharField(blank=True, max_length=128, null=True), + ), + migrations.AddField( + model_name="addonsconfig", + name="linkpreviews_enabled", + field=models.BooleanField(default=False), + ), + migrations.AddField( + model_name="addonsconfig", + name="linkpreviews_root_selector", + field=models.CharField(blank=True, max_length=128, null=True), + ), + migrations.AddField( + model_name="historicaladdonsconfig", + name="linkpreviews_doctool_name", + field=models.CharField( + blank=True, + choices=[("sphinx", "Sphinx"), ("other", "Other")], + max_length=128, + null=True, + ), + ), + migrations.AddField( + model_name="historicaladdonsconfig", + name="linkpreviews_doctool_version", + field=models.CharField(blank=True, max_length=128, null=True), + ), + migrations.AddField( + model_name="historicaladdonsconfig", + name="linkpreviews_enabled", + field=models.BooleanField(default=False), + ), + migrations.AddField( + model_name="historicaladdonsconfig", + name="linkpreviews_root_selector", + field=models.CharField(blank=True, max_length=128, null=True), + ), + ]