Opened 14 years ago

Closed 14 years ago

Last modified 14 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


It's mentioned at 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:



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 Changed 14 years ago by Adrian Holovaty

Resolution: wontfix
Status: newclosed

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

comment:2 Changed 14 years ago by Brendan O'Connor <brenocon@…>

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