From e7fec0c4055cdcb4fcfa802cabcf3306ab84449a Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Mon, 22 Jul 2013 09:49:17 -0400 Subject: [PATCH] Exporter: add ordering for more tables without id column --- lib/jobs/exporter.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/jobs/exporter.rb b/lib/jobs/exporter.rb index c2546d6373d..c71a297945c 100644 --- a/lib/jobs/exporter.rb +++ b/lib/jobs/exporter.rb @@ -48,10 +48,14 @@ module Jobs def order_columns_for(model) @order_columns_for_hash ||= { 'CategoryFeaturedTopic' => 'category_id, topic_id', + 'CategorySearchData' => 'category_id', 'PostOneboxRender' => 'post_id, onebox_render_id', 'PostReply' => 'post_id, reply_id', + 'PostSearchData' => 'post_id', 'PostTiming' => 'topic_id, post_number, user_id', + 'SiteContent' => 'content_type', 'TopicUser' => 'topic_id, user_id', + 'UserSearchData' => 'user_id', 'View' => 'parent_id, parent_type, ip_address, viewed_at' } @order_columns_for_hash[model.name]