Update migration utils for improved filtering and recording.

Review Request #10578 — Created June 4, 2019 and submitted — Latest diff uploaded

Information

Django Evolution
master

Reviewers

filter_migration_targets is now able to exclude specific targets from
the list, which is useful for filtering out already-applied migrations.

record_applied_migrations can now record migrations for multiple apps
at a time. Previously, it took a specific app label and list of
migratino names, but now it takes a list of targets instead, making it
far more useful.

Unit tests pass on all supported versions of Django.

Diff Revision 1 (Latest)

Commits

First Last Summary ID Author
Update migration utils for improved filtering and recording.
`filter_migration_targets` is now able to exclude specific targets from the list, which is useful for filtering out already-applied migrations. `record_applied_migrations` can now record migrations for multiple apps at a time. Previously, it took a specific app label and list of migratino names, but now it takes a list of targets instead, making it far more useful.
0595bd60d9af8e7ef21a62c8bfa4853cb7e59322 Christian Hammond
django_evolution/tests/test_migration_utils.py
django_evolution/utils/migrations.py
Loading...