Exporter: add ordering for more tables without id column

This commit is contained in:
Neil Lalonde 2013-07-22 09:49:17 -04:00
parent 3eb953cebe
commit e7fec0c405
1 changed files with 4 additions and 0 deletions

View File

@ -48,10 +48,14 @@ module Jobs
def order_columns_for(model) def order_columns_for(model)
@order_columns_for_hash ||= { @order_columns_for_hash ||= {
'CategoryFeaturedTopic' => 'category_id, topic_id', 'CategoryFeaturedTopic' => 'category_id, topic_id',
'CategorySearchData' => 'category_id',
'PostOneboxRender' => 'post_id, onebox_render_id', 'PostOneboxRender' => 'post_id, onebox_render_id',
'PostReply' => 'post_id, reply_id', 'PostReply' => 'post_id, reply_id',
'PostSearchData' => 'post_id',
'PostTiming' => 'topic_id, post_number, user_id', 'PostTiming' => 'topic_id, post_number, user_id',
'SiteContent' => 'content_type',
'TopicUser' => 'topic_id, user_id', 'TopicUser' => 'topic_id, user_id',
'UserSearchData' => 'user_id',
'View' => 'parent_id, parent_type, ip_address, viewed_at' 'View' => 'parent_id, parent_type, ip_address, viewed_at'
} }
@order_columns_for_hash[model.name] @order_columns_for_hash[model.name]