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, wheresyncdbormigrate --run-syncdbneeds to be
run to create initial models. However, unit tests and legacy code will
still callsyncdbormigrate, which could interfere withevolve's
process.To address this, we now provide replacements for both
syncdband
migratethat just wrapevolve. Some features of both commands had
to be removed, but they're pretty minor and not worth maintaining
support for. For bothsyncdbandmigrate, that meansinitial_data
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
enabled.Ran a couple different consuming project test suites with these
versions of the commands installed.
| Summary | ID |
|---|---|
| df0748914020ad9b4ad0989f2f0cc1e403e28292 |
| Description | From | Last Updated |
|---|---|---|
|
migrate -> syncdb |
|