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:
Stefan Tatschner 2014-11-14 14:28:09 +01:00
parent 54d450156f
commit 2ffd3d29d7
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ class ImportScripts::MyBB < ImportScripts::Base
FROM mybb_posts p,
mybb_threads t
WHERE p.tid = t.tid
ORDER BY id
ORDER BY p.dateline
LIMIT #{BATCH_SIZE}
OFFSET #{offset};
")