Closed (duplicate)
Project:
Node Comments
Version:
6.x-1.2-rc2
Component:
Code
Priority:
Critical
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
17 Feb 2009 at 22:33 UTC
Updated:
27 May 2009 at 01:11 UTC
I need an upgrade/import script for 6.x. Something to import the comments into the correct tables and convert them to nodes of type 'comment'. Similar to the script seen here: http://drupal.org/node/200871
My comments do not import automatically.
Set to critical, since this keeps one from using any previous posts made via the comment.module.
Comments
Comment #1
nicholas.alipaz commentedOK, figured it out based on robertDouglass' 5.x script. There was one table that didn't exist in 6.x.
If anyone needs it, here are the queries I needed to run to sync everything up. I couldn't get the queries to process quite right via the update.php page as he had suggested so I ran them directly on the database via phpmyadmin.
Here is what I ran:
After, you might want to drop your forum and comments tables.
You will need to edit the queries to replace anything in squiggly brackets {} with your correct table. Many times the same name with a "drup_" in front of it.
Comment #2
quicksketchWe'll be fixing this in #472886: Convert comments to nodecomments and viceversa when the type is changed. It won't make it into the 1.x version of Node Comments.