Extend changes.path and changes.from_path to support longer paths. #5771

Long paths to SCM files would be truncated or wouldn't insert into some
databases.  This extends those fields to support arbitrary length filenames.

Contributed by Holger Just

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3828 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Eric Davis
2010-07-06 02:07:46 +00:00
parent 48a5460da4
commit 56af944afa
5 changed files with 18 additions and 6 deletions
@@ -0,0 +1,11 @@
class ChangeChangesPathLengthLimit < ActiveRecord::Migration
def self.up
change_column :changes, :path, :text, :default => "", :null => false
change_column :changes, :from_path, :text
end
def self.down
change_column :changes, :path, :string, :default => "", :null => false
change_column :changes, :from_path, :string
end
end