Redmine 4.1.1
This commit is contained in:
parent
33e7b881a5
commit
3d976f1b3b
1593 changed files with 36180 additions and 19489 deletions
|
@ -1,7 +1,7 @@
|
|||
class CopyRepositoriesLogEncoding < ActiveRecord::Migration
|
||||
class CopyRepositoriesLogEncoding < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
encoding = Setting.commit_logs_encoding.to_s.strip
|
||||
encoding = encoding.blank? ? 'UTF-8' : encoding
|
||||
encoding = encoding.presence || 'UTF-8'
|
||||
# encoding is NULL by default
|
||||
Repository.where("type IN ('Bazaar', 'Cvs', 'Darcs')").
|
||||
update_all(["log_encoding = ?", encoding])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue