@@ -3,7 +3,7 class CopyRepositoriesLogEncoding < ActiveRecord::Migration | |||||
3 | encoding = Setting.commit_logs_encoding.to_s.strip |
|
3 | encoding = Setting.commit_logs_encoding.to_s.strip | |
4 | encoding = encoding.blank? ? 'UTF-8' : encoding |
|
4 | encoding = encoding.blank? ? 'UTF-8' : encoding | |
5 | # encoding is NULL by default |
|
5 | # encoding is NULL by default | |
6 |
Repository.update_all(["log_encoding = ?", encoding], " |
|
6 | Repository.update_all(["log_encoding = ?", encoding], "type IN ('Bazaar', 'Cvs', 'Darcs')") | |
7 | end |
|
7 | end | |
8 |
|
8 | |||
9 | def self.down |
|
9 | def self.down |
General Comments 0
You need to be logged in to leave comments.
Login now