From 3422415ef6b1b2a2d6a60a5feb2f0dd70347f7a8 Mon Sep 17 00:00:00 2001 From: Kane York Date: Thu, 9 Jul 2015 14:22:54 -0700 Subject: [PATCH] Float some tables to top of schema --- plugin.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugin.rb b/plugin.rb index 09050fc..cf10a5d 100644 --- a/plugin.rb +++ b/plugin.rb @@ -221,8 +221,13 @@ SQL end # this works for now, but no big loss if the tables aren't quite sorted + favored_order = %w(posts topics users categories badges groups notifications post_actions site_settings) sorted_by_table = {} + favored_order.each do |tbl| + sorted_by_table[tbl] = by_table[tbl] + end by_table.keys.sort.each do |tbl| + next if favored_order.include? tbl sorted_by_table[tbl] = by_table[tbl] end sorted_by_table