You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20110228000100_copy_repositories_log_encoding.rb 344B

1234567891011
  1. class CopyRepositoriesLogEncoding < ActiveRecord::Migration
  2. def self.up
  3. encoding = Setting.commit_logs_encoding.to_s.strip
  4. encoding = encoding.blank? ? 'UTF-8' : encoding
  5. # encoding is NULL by default
  6. Repository.update_all(["log_encoding = ?", encoding], "type IN ('Bazaar', 'Cvs', 'Darcs')")
  7. end
  8. def self.down
  9. end
  10. end