import topic views in phpbb3
This commit is contained in:
@@ -75,7 +75,7 @@ module ImportScripts::PhpBB3
|
||||
def fetch_posts(last_post_id)
|
||||
query(<<-SQL, :post_id)
|
||||
SELECT p.post_id, p.topic_id, t.forum_id, t.topic_title, t.topic_first_post_id, p.poster_id,
|
||||
p.post_text, p.post_time, t.topic_status, t.topic_type, t.poll_title,
|
||||
p.post_text, p.post_time, t.topic_status, t.topic_type, t.poll_title, t.topic_views,
|
||||
CASE WHEN t.poll_length > 0 THEN t.poll_start + t.poll_length ELSE NULL END AS poll_end,
|
||||
t.poll_max_options, p.post_attachment,
|
||||
CASE WHEN u.user_type = #{Constants::USER_TYPE_IGNORE} THEN p.post_username ELSE NULL END post_username
|
||||
|
||||
Reference in New Issue
Block a user