Changes between Version 155 and Version 156 of RemovingTheMagic
- Timestamp:
- Jun 19, 2006, 11:22:05 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
RemovingTheMagic
v155 v156 258 258 UPDATE auth_permission SET name='Can delete user' WHERE codename='delete_user'; 259 259 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 {{{273 260 UPDATE django_content_type SET name='group' WHERE model='groups'; 274 261 UPDATE django_content_type SET name='user' WHERE model='users'; 262 COMMIT; 263 }}} 264 265 === django_content_type table changes === 266 267 For 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 {{{ 270 UPDATE django_content_type SET model='group' WHERE model='groups'; 271 UPDATE django_content_type SET model='user' WHERE model='users'; 272 UPDATE django_content_type SET model='flatpage' WHERE model='flatpagess'; 275 273 }}} 276 274