mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-27 23:29:52 -04: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:
parent
54d450156f
commit
2ffd3d29d7
1 changed files with 1 additions and 1 deletions
|
@ -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};
|
||||
")
|
||||
|
|
Loading…
Add table
Reference in a new issue