]> source.dussan.org Git - redmine.git/commitdiff
scm: add "path_encoding" column in repositories table (#2664, #2274).
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 24 Feb 2011 05:58:37 +0000 (05:58 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 24 Feb 2011 05:58:37 +0000 (05:58 +0000)
Contributed by Yuya Nishihara.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4940 e93f8b46-1217-0410-a6f0-8f06a7374b81

db/migrate/20110224000000_add_repositories_path_encoding.rb [new file with mode: 0644]

diff --git a/db/migrate/20110224000000_add_repositories_path_encoding.rb b/db/migrate/20110224000000_add_repositories_path_encoding.rb
new file mode 100644 (file)
index 0000000..253d7a6
--- /dev/null
@@ -0,0 +1,9 @@
+class AddRepositoriesPathEncoding < ActiveRecord::Migration
+  def self.up
+    add_column :repositories, :path_encoding, :string, :limit => 64, :default => nil
+  end
+
+  def self.down
+    remove_column :repositories, :path_encoding
+  end
+end