mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
Order posts by dateline
The post_ids in my mybb installation did not be in the right order. Post with ID 2 was posted after post 5. I think it has something to do with a previous import from phpbb to mybb.
This commit is contained in:
@ -94,7 +94,7 @@ class ImportScripts::MyBB < ImportScripts::Base
|
|||||||
FROM mybb_posts p,
|
FROM mybb_posts p,
|
||||||
mybb_threads t
|
mybb_threads t
|
||||||
WHERE p.tid = t.tid
|
WHERE p.tid = t.tid
|
||||||
ORDER BY id
|
ORDER BY p.dateline
|
||||||
LIMIT #{BATCH_SIZE}
|
LIMIT #{BATCH_SIZE}
|
||||||
OFFSET #{offset};
|
OFFSET #{offset};
|
||||||
")
|
")
|
||||||
|
Reference in New Issue
Block a user