FIX: Drupal import was using wrong comments table

This commit is contained in:
Robin Ward 2014-10-01 14:25:32 -04:00
parent 85d71ba362
commit f8ac0bd7ef
1 changed files with 2 additions and 2 deletions

View File

@ -68,10 +68,10 @@ class ImportScripts::DrupalQA < ImportScripts::Drupal
q.field_answer_question_nid AS nid,
n.uid,
n.created,
f.comment_body_value AS body
f.body_value AS body
FROM node AS n
INNER JOIN field_data_field_answer_question AS q ON q.entity_id = n.nid
INNER JOIN field_data_comment_body AS f ON f.entity_id = n.nid
INNER JOIN field_data_body AS f ON f.entity_id = n.nid
WHERE n.status = 1
AND n.type = 'answer'
LIMIT #{batch_size}