Ticket #8583: comments_upgrade_sql.diff

File comments_upgrade_sql.diff, 663 bytes (added by Rajesh Dhawan, 16 years ago)

Comments upgrade SQL

  • docs/ref/contrib/comments/upgrade.txt

     
    5454    UPDATE django_comments SET user_name = (
    5555        SELECT username FROM auth_user
    5656        WHERE django_comments.user_id = auth_user.id
    57     );
     57    ) WHERE django_comments.user_id is not NULL;
    5858    UPDATE django_comments SET user_email = (
    5959        SELECT email FROM auth_user
    6060        WHERE django_comments.user_id = auth_user.id
    61     );
     61    ) WHERE django_comments.user_id is not NULL;
    6262   
    6363    COMMIT;
Back to Top