From 51d1f541027fff2318669ee178ff13c0174a1188 Mon Sep 17 00:00:00 2001 From: albert Date: Sun, 17 Mar 2013 21:28:24 -0400 Subject: [PATCH] update fix --- script/fixes/007.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/script/fixes/007.rb b/script/fixes/007.rb index 617ee3126..0c36bb6a0 100644 --- a/script/fixes/007.rb +++ b/script/fixes/007.rb @@ -4,3 +4,4 @@ require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'config', ActiveRecord::Base.connection.execute("set statement_timeout = 0") ActiveRecord::Base.connection.execute("update comments set updater_id = creator_id") +ActiveRecord::Base.connection.execute("update tags set post_count = 0 where post_count < 0")