##// END OF EJS Templates
Merged r13471....
Merged r13471. git-svn-id: http://svn.redmine.org/redmine/branches/2.6-stable@13472 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r12213:0bc3ef5014dd
r13091:05c2cea56fbe
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