##// END OF EJS Templates
Typo....
Jean-Philippe Lang -
r7924:66cc0fe7ab83
parent child
Show More
@@ -1,11 +1,11
1 class CopyRepositoriesLogEncoding < ActiveRecord::Migration
1 class CopyRepositoriesLogEncoding < ActiveRecord::Migration
2 def self.up
2 def self.up
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], "log_encoding IN ('Bazaar', 'Cvs', 'Darcs')")
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
10 end
10 end
11 end
11 end
General Comments 0
You need to be logged in to leave comments. Login now