G
G
Gennady2019-02-15 17:56:18
Django
Gennady, 2019-02-15 17:56:18

Is it possible to add the --fake option to the migration file?

Good afternoon!
Guys, can you tell me if the --fake parameter, which is usually used like this:
manage.py migrate --fake , can
be added to the migration file in any way? so that specifically this migration is always run with this parameter?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
6
6elkka, 2019-02-17
@genana40

To do this, you need to rename the operations attribute in the Migration class to operations_fake

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question