mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:21:04 +08:00
FIX: Drupal import was using wrong comments table
This commit is contained in:
@ -68,10 +68,10 @@ class ImportScripts::DrupalQA < ImportScripts::Drupal
|
|||||||
q.field_answer_question_nid AS nid,
|
q.field_answer_question_nid AS nid,
|
||||||
n.uid,
|
n.uid,
|
||||||
n.created,
|
n.created,
|
||||||
f.comment_body_value AS body
|
f.body_value AS body
|
||||||
FROM node AS n
|
FROM node AS n
|
||||||
INNER JOIN field_data_field_answer_question AS q ON q.entity_id = n.nid
|
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
|
WHERE n.status = 1
|
||||||
AND n.type = 'answer'
|
AND n.type = 'answer'
|
||||||
LIMIT #{batch_size}
|
LIMIT #{batch_size}
|
||||||
|
Reference in New Issue
Block a user