Commits

ja...@bcc190cf-cafb-0310-a4f2-bffc1f526a37  committed b685a11

Fixed an error in comment upgrade SQL.

  • Participants
  • Parent commits 521240d

Comments (0)

Files changed (1)

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

     FROM comments_freecomment;
 
     INSERT INTO django_comments 
-        (content_type_id, object_pk, site_id, user_id, comment, submit_date,
-        ip_address, is_public, is_removed) 
+        (content_type_id, object_pk, site_id, user_id, user_name, user_email,
+        user_url, comment, submit_date, ip_address, is_public, is_removed)
     SELECT 
-        content_type_id, object_id, site_id, user_id, comment, submit_date,
-        ip_address, is_public, is_removed
+        content_type_id, object_id, site_id, user_id, '', '', '', comment,
+        submit_date, ip_address, is_public, is_removed
     FROM comments_comment;
 
     UPDATE django_comments SET user_name = (