Opened 18 years ago
Closed 17 years ago
#3116 closed enhancement (wontfix)
[multi-db] inspectdb should inspect OTHER_DATABASES
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | django-admin.py inspectdb | Version: | |
Severity: | normal | Keywords: | |
Cc: | Triage Stage: | Design decision needed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
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.
Change History (2)
comment:1 by , 18 years ago
Triage Stage: | Unreviewed → Design decision needed |
---|
comment:2 by , 17 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
At the moment multi-db isn't under active development, so closing this as wontfix. If/when somebody works on it again, they can pull these tickets out again.