Changes between Version 148 and Version 149 of RemovingTheMagic


Ignore:
Timestamp:
05/21/2006 10:20:07 PM (9 years ago)
Author:
garthk
Comment:

Warning about upgrading with comments system in place

Legend:

Unmodified
Added
Removed
Modified
  • RemovingTheMagic

    v148 v149  
    234234}}}
    235235
     236'''User 'garthk' also found some problem with the {{{.module}}}/{{{.model}}} renaming stuff above, which he fixed manually, and followed up with some fixes for the Django comments system in case you're getting exceptions telling you that "Table appname.comments_comment does not exist".'''
     237
     238{{{
     239ALTER TABLE comments RENAME TO comments_comment;
     240ALTER TABLE comments_karma RENAME TO comments_karmascore;
     241ALTER TABLE comments_free RENAME TO comments_freecomment;
     242ALTER TABLE comments_moderator_deletions RENAME TO comments_moderatordeletion;
     243ALTER TABLE comments_user_flags RENAME TO comments_userflag;
     244}}}
     245
     246
    236247=== Database table-naming scheme has been changed ===
    237248
     
    243254
    244255To upgrade, you'll either have to explicitly set {{{db_table}}} in your models or rename your database tables to fit the new naming scheme Django expects. We'd recommend setting {{{db_table}}}, because it's easier.
    245 
    246 
    247 
    248 
    249 
    250256
    251257== Code changes you'll need to make ==
Back to Top