[multi-db] inspectdb should inspect OTHER_DATABASES
|Reported by:||carole.zieler@…||Owned by:||nobody|
|Cc:||Triage Stage:||Design decision needed|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Currently to analyze all of my legacy databases, I have to modify the main database in settings.py to one database at a time ( python manage.py inspectdb > somefile.py ) ... then copy that somefile.py file to the correct directory that corresponds to the MODEL entry for that database under OTHER_DATABASES.
For this branch, it seems to me that the behavior for inspectdb should be as follows:
- Inspects main database and outputs code to models.py
- For each item in OTHER_DATABASES, inspect that table, and create a models.py file in the directory that corresponds to the MODEL entry for that database.