summaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-07-06 02:07:46 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-07-06 02:07:46 +0000
commit56af944afa1406358685a568072bc7eaed5143ef (patch)
tree30f11bf2da613c002af7fd0692fdc157f0d3d7c6 /db
parent48a5460da4be45e0e7e5946b870b9a91ee27f086 (diff)
downloadredmine-56af944afa1406358685a568072bc7eaed5143ef.tar.gz
redmine-56af944afa1406358685a568072bc7eaed5143ef.zip
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
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20100705164950_change_changes_path_length_limit.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/20100705164950_change_changes_path_length_limit.rb b/db/migrate/20100705164950_change_changes_path_length_limit.rb
new file mode 100644
index 000000000..5f34d5dcf
--- /dev/null
+++ b/db/migrate/20100705164950_change_changes_path_length_limit.rb
@@ -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