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 1

This is not the most recent revision of the diff. The latest diff is revision 2. See what's changed.

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.
b1bc08ce842c67d0fa87a536acb46f2e5db40ccf Christian Hammond
django_evolution/evolve.py
django_evolution/models.py
django_evolution/tests/test_evolver.py
Loading...