##// END OF EJS Templates
tagged version 3.2.4...
tagged version 3.2.4 git-svn-id: http://svn.redmine.org/redmine/tags/3.2.4@15903 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r12213:0bc3ef5014dd
r15521:a6765ece867e 3.2.4
Show More
20110228000100_copy_repositories_log_encoding.rb
12 lines | 368 B | text/x-ruby | RubyLexer
/ db / migrate / 20110228000100_copy_repositories_log_encoding.rb
class CopyRepositoriesLogEncoding < ActiveRecord::Migration
def self.up
encoding = Setting.commit_logs_encoding.to_s.strip
encoding = encoding.blank? ? 'UTF-8' : encoding
# encoding is NULL by default
Repository.where("type IN ('Bazaar', 'Cvs', 'Darcs')").
update_all(["log_encoding = ?", encoding])
end
def self.down
end
end