Add replacement syncdb and migrate commands that wrap evolve.

Review Request #10592 — Created June 14, 2019 and submitted

Information

Django Evolution
master

Reviewers

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, where syncdb or migrate --run-syncdb needs to be
run to create initial models. However, unit tests and legacy code will
still call syncdb or migrate, which could interfere with evolve's
process.

To address this, we now provide replacements for both syncdb and
migrate that 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 syncdb and migrate, that means initial_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
Add replacement syncdb and migrate commands that wrap evolve.
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, where `syncdb` or `migrate --run-syncdb` needs to be run to create initial models. However, unit tests and legacy code will still call `syncdb` or `migrate`, which could interfere with `evolve`'s process. To address this, we now provide replacements for both `syncdb` and `migrate` that 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 `syncdb` and `migrate`, that means `initial_data` fixtures are no longer loaded (which was deprecated anyway). For `migrate`, individual migrations can no longer be applied. `--fake` is also not supported. `--fake-initial` and `--run-syncdb` are implied. We may add support for these down the road.
df0748914020ad9b4ad0989f2f0cc1e403e28292
Description From Last Updated

migrate -> syncdb

daviddavid
david
  1. 
      
  2. migrate -> syncdb

  3. 
      
chipx86
david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to master (211bb2b)
Loading...