Skip to content

Commit

Permalink
🗃️ Squash and optimize forms app migrations
Browse files Browse the repository at this point in the history
All operations of the forms app were squashed into a single migration
using manage.py squashmigrations.

Afterwards, the optimization was done manually:

* re-ordered CreateModel operations
* moved AddField operations into the CreateModel operations
* removed fields from CreateModel for which a RemoveField operation
  was present
* incorporated AlterField into CreateModel operations
* Removed the operations to patch formio component configurations,
  those are not needed on fresh installations
  • Loading branch information
sergei-maertens committed Feb 22, 2024
1 parent 05dea6c commit d7e4e23
Show file tree
Hide file tree
Showing 2 changed files with 1,396 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/openforms/config/tests/test_migrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

class EnableNewBuilderMigrationTests(TestMigrations):
app = "config"
migrate_from = "0053_v230_to_v250"
migrate_from = "0001_initial_to_v250"
migrate_to = "0054_enable_new_builder"

def setUpBeforeMigration(self, apps):
Expand Down
Loading

0 comments on commit d7e4e23

Please sign in to comment.