From 2ffd3d29d755c3f50e161b140471fc24c3b9f718 Mon Sep 17 00:00:00 2001 From: Stefan Tatschner <stefan@sevenbyte.org> Date: Fri, 14 Nov 2014 14:28:09 +0100 Subject: [PATCH] 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. --- script/import_scripts/mybb.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/import_scripts/mybb.rb b/script/import_scripts/mybb.rb index 3f7e70e5d..753910c76 100644 --- a/script/import_scripts/mybb.rb +++ b/script/import_scripts/mybb.rb @@ -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}; ")