Add replacement syncdb and migrate commands that wrap evolve.
Review Request #10592 — Created June 14, 2019 and submitted
In Django Evolution 2.0, the
evolve
command is responsible for all
database and model creation, evolution, and migration. There's no longer
a two-step phase, wheresyncdb
ormigrate --run-syncdb
needs to be
run to create initial models. However, unit tests and legacy code will
still callsyncdb
ormigrate
, which could interfere withevolve
's
process.To address this, we now provide replacements for both
syncdb
and
migrate
that just wrapevolve
. Some features of both commands had
to be removed, but they're pretty minor and not worth maintaining
support for. For bothsyncdb
andmigrate
, 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 |
david |