Add replacement syncdb and migrate commands that wrap evolve.
Review Request #10592 — Created June 14, 2019 and submitted
In Django Evolution 2.0, the
evolvecommand is responsible for all
database and model creation, evolution, and migration. There's no longer
a two-step phase, where
migrate --run-syncdbneeds to be
run to create initial models. However, unit tests and legacy code will
migrate, which could interfere with
To address this, we now provide replacements for both
migratethat just wrap
evolve. Some features of both commands had
to be removed, but they're pretty minor and not worth maintaining
support for. For both
migrate, that means
fixtures are no longer loaded (which was deprecated anyway), and for
migrate, individual migrations can no longer be applied. We may add
support for both down the road.
Used these commands directly with and without Django Evolution being
Ran a couple different consuming project test suites with these
versions of the commands installed.
migrate -> syncdb
Updated the syncdb docs to not claim to be replacing migrate.
Revision 2 (+300)
Checks run (2 succeeded)