Opened 19 years ago

Closed 19 years ago

Last modified 19 years ago

#388 closed enhancement (wontfix)

Prefix for django table names

Reported by: Brendan O'Connor <brenocon@…> Owned by: Adrian Holovaty
Component: Metasystem Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

It's mentioned at http://www.djangoproject.com/documentation/legacy_databases/ you can't change the names of the django tables in the database.

Proposal: use a prefix, like "_dj_", for all those tables. So you'd have in the database:

_dj_sites
_dj_packages
_dj_content_types

etc.

This would make browsing your schema easier, since your application-specific schemas wouldn't be interspersed with django-specific metasystem tables in an alphabetical listing. It would also make migrating from legacy databases easier, or interoperation with non-django systems, or indeed any operation that requires direct use of the DB.

Change History (2)

comment:1 by Adrian Holovaty, 19 years ago

Resolution: wontfix
Status: newclosed

Yeah, we've considered this, but it's a bit too late at this point to rename those.

comment:2 by Brendan O'Connor <brenocon@…>, 19 years ago

Seems like it's a matter of going through the list of tablenames, and for each one running a massive find-and-replace, taking care not to bork those strings when they're appearing in places outside SQL... right?

I've done things like this before with grep and emacs, and there are IDE's that do it very nicely. I could give it a spin if someone who knows the code better could help out testing the patch.

Note: See TracTickets for help on using tickets.
Back to Top