From cae3716aaf59d2f31023aea3793170a7d787bf41 Mon Sep 17 00:00:00 2001 From: Sergei Maertens Date: Fri, 10 Jan 2025 16:45:06 +0100 Subject: [PATCH] :card_file_box: [#4654] Rename the table for objects API group back to default Now that all migration tests are removed and migrations are squashed, we should be able to perform this schema migration. --- .../0005_alter_objectsapigroupconfig_table.py | 17 +++++++++++++++++ src/openforms/contrib/objects_api/models.py | 4 ---- 2 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 src/openforms/contrib/objects_api/migrations/0005_alter_objectsapigroupconfig_table.py diff --git a/src/openforms/contrib/objects_api/migrations/0005_alter_objectsapigroupconfig_table.py b/src/openforms/contrib/objects_api/migrations/0005_alter_objectsapigroupconfig_table.py new file mode 100644 index 0000000000..726d48be0f --- /dev/null +++ b/src/openforms/contrib/objects_api/migrations/0005_alter_objectsapigroupconfig_table.py @@ -0,0 +1,17 @@ +# Generated by Django 4.2.17 on 2025-01-10 15:44 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ("objects_api", "0004_alter_objectsapigroupconfig_objects_service_and_more"), + ] + + operations = [ + migrations.AlterModelTable( + name="objectsapigroupconfig", + table=None, + ), + ] diff --git a/src/openforms/contrib/objects_api/models.py b/src/openforms/contrib/objects_api/models.py index e1d3cd3a2a..9483e39036 100644 --- a/src/openforms/contrib/objects_api/models.py +++ b/src/openforms/contrib/objects_api/models.py @@ -171,10 +171,6 @@ class ObjectsAPIGroupConfig(models.Model): ) class Meta: - # TODO - # Remove db_table when squashing migrations has been completed. - # Related to github issue #4654 - db_table = "registrations_objects_api_objectsapigroupconfig" verbose_name = _("Objects API group") verbose_name_plural = _("Objects API groups") constraints = [