Changes between Version 155 and Version 156 of RemovingTheMagic


Ignore:
Timestamp:
Jun 19, 2006, 11:22:05 PM (18 years ago)
Author:
Adrian Holovaty
Comment:

Added "django_content_type table changes" section

Legend:

Unmodified
Added
Removed
Modified
  • RemovingTheMagic

    v155 v156  
    258258UPDATE auth_permission SET name='Can delete user' WHERE codename='delete_user';
    259259
    260 UPDATE django_content_type SET name='group' WHERE model='group';
    261 UPDATE django_content_type SET name='user' WHERE model='user';
    262 COMMIT;
    263 }}}
    264 
    265 '''User 'stuka@users.sourceforge.net' noted that when updating from 0.91, he needed to change the last 2 UPDATE statements to:'''
    266 {{{
    267 UPDATE django_content_type SET name='group' WHERE module='groups';
    268 UPDATE django_content_type SET name='user' WHERE module='users';
    269 }}}
    270 
    271 '''User 'Graham King' noted that he thinks both the original and corrected last 2 UPDATE statements have typos, and the correct SQL is:'''
    272 {{{
    273260UPDATE django_content_type SET name='group' WHERE model='groups';
    274261UPDATE django_content_type SET name='user' WHERE model='users';
     262COMMIT;
     263}}}
     264
     265=== django_content_type table changes ===
     266
     267For every record in the {{{django_content_type}}} table (formerly {{{content_types}}}), rename the {{{model}}} field so that it's a singular version of the word. For example:
     268
     269{{{
     270UPDATE django_content_type SET model='group' WHERE model='groups';
     271UPDATE django_content_type SET model='user' WHERE model='users';
     272UPDATE django_content_type SET model='flatpage' WHERE model='flatpagess';
    275273}}}
    276274
Back to Top