This commit is contained in:
albert
2013-03-18 09:40:18 -07:00
parent ec8da9c92b
commit b65efb975b
2 changed files with 6 additions and 5 deletions

View File

@@ -4,4 +4,5 @@ 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 where updater_id is null")
ActiveRecord::Base.connection.execute("update forum_posts set updater_id = creator_id where updater_id is null")
ActiveRecord::Base.connection.execute("update tags set post_count = 0 where post_count < 0")