Skip to content

Commit

Permalink
Merge pull request #3506 from open-formulieren/chore/cleanup-old-migr…
Browse files Browse the repository at this point in the history
…ations

⚰️ Remove dead migration code
  • Loading branch information
sergei-maertens authored Sep 27, 2023
2 parents c4bca1d + 804ca54 commit 83d9129
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 125 deletions.
1 change: 0 additions & 1 deletion src/openforms/conf/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,6 @@
"openforms.utils",
"openforms.upgrades",
"openforms.plugins",
"openforms.custom_field_types", # TODO: remove completely after 2.1 is released
"openforms.variables",
# Apps registering static variables
"openforms.variables.static_variables.apps.StaticVariables",
Expand Down
8 changes: 0 additions & 8 deletions src/openforms/custom_field_types/__init__.py

This file was deleted.

42 changes: 0 additions & 42 deletions src/openforms/custom_field_types/migrations/0001_initial.py

This file was deleted.

This file was deleted.

This file was deleted.

Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -7,44 +7,35 @@ class Migration(migrations.Migration):

initial = True

dependencies = [
("custom_field_types", "0002_alter_familymemberstypeconfig_table"),
]

operations = [
migrations.SeparateDatabaseAndState(
state_operations=[
migrations.CreateModel(
name="FamilyMembersTypeConfig",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
(
"data_api",
models.CharField(
choices=[
("haal_centraal", "Haal Centraal"),
("stuf_bg", "StufBg"),
],
help_text="Which API to use to retrieve the data of the family members.",
max_length=100,
verbose_name="data api",
),
),
],
options={
"verbose_name": "Family members type configuration",
"db_table": "custom_field_types_familymemberstypeconfig",
},
migrations.CreateModel(
name="FamilyMembersTypeConfig",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
(
"data_api",
models.CharField(
choices=[
("haal_centraal", "Haal Centraal"),
("stuf_bg", "StufBg"),
],
help_text="Which API to use to retrieve the data of the family members.",
max_length=100,
verbose_name="data api",
),
),
],
database_operations=[],
options={
"verbose_name": "Family members type configuration",
"db_table": "custom_field_types_familymemberstypeconfig",
},
),
]

0 comments on commit 83d9129

Please sign in to comment.