This affects all versions.
https://docs.djangoproject.com/en/2.2/topics/db/multi-db/#an-example
https://stackoverflow.com/questions/35609509/django-migrations-with-
multiple-databases
Thanks, I hope this helps the community.
--
Ticket URL: <https://code.djangoproject.com/ticket/32083>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by JamesTrick):
I believe the behaviour is documented here, under the
[https://docs.djangoproject.com/en/2.2/topics/db/multi-db/#synchronizing-
your-databases Synchronizing your databases] section. Where it says:
''The migrate management command operates on one database at a time. By
default, it operates on the default database, but by providing the
--database option, you can tell it to synchronize a different database.''
Perhaps though, we could add a line in the "An Example" section
referencing the need to specify the database? Especially since that
StackOverflow article has been viewed 13k times.
--
Ticket URL: <https://code.djangoproject.com/ticket/32083#comment:1>
Comment (by Tom Weber):
Replying to [comment:1 JamesTrick]:
> I believe the behaviour is documented here, under the
[https://docs.djangoproject.com/en/2.2/topics/db/multi-db/#synchronizing-
your-databases Synchronizing your databases] section. Where it says:
>
> ''The migrate management command operates on one database at a time. By
default, it operates on the default database, but by providing the
--database option, you can tell it to synchronize a different database.''
>
> Perhaps though, we could add a line in the "An Example" section
referencing the need to specify the database? Especially since that
StackOverflow article has been viewed 13k times.
Django is such a big project, that even though the documentation contains
all the information I have ever needed, it is not always where I need it
considering related subjects. A reference to the associated migrate
section and reminder to specifically run the migrate command for each
database would have helped in my scenario.
--
Ticket URL: <https://code.djangoproject.com/ticket/32083#comment:2>
* owner: nobody => Carlton Gibson
* status: new => assigned
* stage: Unreviewed => Accepted
Comment:
> Especially since that StackOverflow article has been viewed 13k times.
I think that's probably the essence of it. I edited the SO Answer to link
back to the correct docs section, and opened a
[https://github.com/django/django/pull/13511 PR] to link back there from
the Example section lower down.
Hopefully that should help people find the docs in question.
--
Ticket URL: <https://code.djangoproject.com/ticket/32083#comment:3>