summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-04-03 05:32:48 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-04-03 05:32:48 +0000
commit69ba7667e16987a8f8a9ce54d31c90a832bff6a4 (patch)
tree3055b3992b13ab7d346aa680e1cd72f0076a5589
parent6139e0033a0435f526f16b5df9b1e597402d3377 (diff)
downloadredmine-69ba7667e16987a8f8a9ce54d31c90a832bff6a4.tar.gz
redmine-69ba7667e16987a8f8a9ce54d31c90a832bff6a4.zip
Change extra_info to long text (#14626).
Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@16446 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--db/migrate/20170320051650_change_repositories_extra_info_limit.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/db/migrate/20170320051650_change_repositories_extra_info_limit.rb b/db/migrate/20170320051650_change_repositories_extra_info_limit.rb
new file mode 100644
index 000000000..3b5654a6d
--- /dev/null
+++ b/db/migrate/20170320051650_change_repositories_extra_info_limit.rb
@@ -0,0 +1,12 @@
+class ChangeRepositoriesExtraInfoLimit < ActiveRecord::Migration
+ def up
+ if ActiveRecord::Base.connection.adapter_name =~ /mysql/i
+ max_size = 16.megabytes
+ change_column :repositories, :extra_info, :text, :limit => max_size
+ end
+ end
+
+ def down
+ # no-op
+ end
+end