Code

Opened 8 years ago

Closed 7 years ago

#3116 closed enhancement (wontfix)

[multi-db] inspectdb should inspect OTHER_DATABASES

Reported by: carole.zieler@… 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: UI/UX:

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:

  1. Inspects main database and outputs code to models.py
  2. 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.

Attachments (0)

Change History (2)

comment:1 Changed 7 years ago by Simon G. <dev@…>

  • Triage Stage changed from Unreviewed to Design decision needed

comment:2 Changed 7 years ago by mtredinnick

  • Resolution set to wontfix
  • Status changed from new to closed

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.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.