view .svn/pristine/4e/4e7958b6c5166d1eddf9d3def7206512417e6971.svn-base @ 1555:1786830cc35d feature_1136

Run update-server-info after each export
author Chris Cannam
date Wed, 13 Jan 2016 12:49:37 +0000
parents dffacf8a6908
children
line wrap: on
line source
class CopyRepositoriesLogEncoding < ActiveRecord::Migration
  def self.up
    encoding = Setting.commit_logs_encoding.to_s.strip
    encoding = encoding.blank? ? 'UTF-8' : encoding
    # encoding is NULL by default
    Repository.where("type IN ('Bazaar', 'Cvs', 'Darcs')").
                 update_all(["log_encoding = ?", encoding])
  end

  def self.down
  end
end