Install Django Evolution models when not present in the database.

Review Request #10572 — Created May 30, 2019 and submitted — Latest diff uploaded

Information

Django Evolution
master

Reviewers

The first time Evolver is used on a database lacking Django Evolution
models, it will now automatically create their tables and store an
initial signature in the database. This means the in-development
Django Evolution no longer needs to be bootstrapped from earlier
versions.

That initial signature will be updated and its database entry reused
after any other apps are evolved, preventing extra entries from being
needed.

Unit tests pass on all supported versions of Django.

Diff Revision 2 (Latest)

orig
1
2

Commits

First Last Summary ID Author
Install Django Evolution models when not present in the database.
The first time `Evolver` is used on a database lacking Django Evolution models, it will now automatically create their tables and store an initial signature in the database. This means the in-development Django Evolution no longer needs to be bootstrapped from earlier versions. That initial signature will be updated and its database entry reused after any other apps are evolved, preventing extra entries from being needed.
2eaba5bdc8fd769a7fdcceac4aa44a4b1a4a6e65 Christian Hammond
django_evolution/evolve.py
django_evolution/models.py
django_evolution/tests/test_evolver.py
Loading...