diff --git a/config/danbooru_default_config.rb b/config/danbooru_default_config.rb index b118325e0..6151cb9cf 100644 --- a/config/danbooru_default_config.rb +++ b/config/danbooru_default_config.rb @@ -4,7 +4,7 @@ module Danbooru class Configuration # The version of this Danbooru. def version - "2.3.0" + "2.4.0" end # The name of this Danbooru. diff --git a/script/fixes/013.rb b/script/fixes/013.rb index aeb6a4b76..5968ec9ee 100644 --- a/script/fixes/013.rb +++ b/script/fixes/013.rb @@ -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.update_column(:score, post.up_score + post.down_score + post.fav_count) -end +end ; true Comment.find_each do |comment| if !Post.exists?("id = #{comment.post_id}") comment.destroy 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 \ No newline at end of file