On 1/27/06, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > > I haven't been following the magic removal branch closely, but here: > http://code.djangoproject.com/wiki/RemovingTheMagic > > There is a migration script for mysql. This line looks wrong: > ALTER TABLE auth_groups_permissions RENAME TO auth_group_permissions; > > Rename to the same name? > Perhaps: > ALTER TABLE auth_groups_permissions RENAME TO auth_group_permission;
That in particular should be: ALTER TABLE auth_groups_permissions RENAME TO auth_group_permissions; which the wiki currently shows. The "permissions" is plural as it's pulled from the name of the ManyToManyField as defined in its model -- which, in this case, is "permissions". That raises a wider question: do we want to singularize those field names as well? It's more of a cosmetic issue, as it doesn't affect the core of the table-name-generating code -- but it would induce more breakage as applied to the various contrib/etc. models, so better to do it in magic-removal if at all.