update version

This commit is contained in:
r888888888
2013-04-19 16:41:20 -07:00
parent d2e7079125
commit 8ad46b1352
2 changed files with 2 additions and 6 deletions

View File

@@ -4,7 +4,7 @@ module Danbooru
class Configuration class Configuration
# The version of this Danbooru. # The version of this Danbooru.
def version def version
"2.3.0" "2.4.0"
end end
# The name of this Danbooru. # The name of this Danbooru.

View File

@@ -6,14 +6,10 @@ ActiveRecord::Base.connection.execute("set statement_timeout = 0")
Post.select("id, score, up_score, down_score, fav_count").find_each do |post| Post.select("id, score, up_score, down_score, fav_count").find_each do |post|
post.update_column(:score, post.up_score + post.down_score + post.fav_count) post.update_column(:score, post.up_score + post.down_score + post.fav_count)
end end ; true
Comment.find_each do |comment| Comment.find_each do |comment|
if !Post.exists?("id = #{comment.post_id}") if !Post.exists?("id = #{comment.post_id}")
comment.destroy comment.destroy
end end
end
User.where("name like ? or name like ?", "\\_%", "%\\_").each do |user|
puts "#{user.id}\t#{user.name}\t#{user.level}\t#{user.email}\t#{user.last_logged_in_at}"
end ; true end ; true