@@ -1,11 +1,11 | |||
|
1 | 1 | class CopyRepositoriesLogEncoding < ActiveRecord::Migration |
|
2 | 2 | def self.up |
|
3 | 3 | encoding = Setting.commit_logs_encoding.to_s.strip |
|
4 | 4 | encoding = encoding.blank? ? 'UTF-8' : encoding |
|
5 | 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 | 7 | end |
|
8 | 8 | |
|
9 | 9 | def self.down |
|
10 | 10 | end |
|
11 | 11 | end |
General Comments 0
You need to be logged in to leave comments.
Login now