Redmine 3.4.4
This commit is contained in:
commit
64924a6376
2112 changed files with 259028 additions and 0 deletions
12
db/migrate/20110228000100_copy_repositories_log_encoding.rb
Normal file
12
db/migrate/20110228000100_copy_repositories_log_encoding.rb
Normal file
|
@ -0,0 +1,12 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue