#32083: Multiple Databases example suggest explaining migrate requires 
--database
be specified for non-default
-------------------------------------+-------------------------------------
     Reporter:  Tom Weber            |                    Owner:  nobody
         Type:                       |                   Status:  new
  Cleanup/optimization               |
    Component:  Documentation        |                  Version:
     Severity:  Normal               |               Resolution:
     Keywords:  migrate, multiple,   |             Triage Stage:
  databases                          |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  1                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

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>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/071.90299d984b3ef3af400d0ccd5bdde188%40djangoproject.com.

Reply via email to