Logo
Explore Help
Register Sign In
Nemcio/Redmine
1
0
Fork 0
You've already forked Redmine
mirror of https://github.com/redmine/redmine.git synced 2025-12-16 05:20:28 +01:00
Code Issues Packages Projects Releases Activity
Files
5a4d12ceede2b3a2b0e86055183bf71dc38f22f2
Redmine/db/migrate/20140228130325_change_changesets_comments_limit.rb

13 lines
256 B
Ruby
Raw Normal View History

Merged rails-5.1 branch (#23630). git-svn-id: http://svn.redmine.org/redmine/trunk@16859 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-07-23 11:26:04 +00:00
class ChangeChangesetsCommentsLimit < ActiveRecord::Migration[4.2]
Changeset comments set to longtext for handling comments > 64KB with Mysql (#16143). git-svn-id: http://svn.redmine.org/redmine/trunk@12944 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-02-28 13:16:46 +00:00
def up
Use Redmine::Database.mysql? instead of a regular expression (#31555). Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@18256 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-06-13 07:50:48 +00:00
if Redmine::Database.mysql?
Changeset comments set to longtext for handling comments > 64KB with Mysql (#16143). git-svn-id: http://svn.redmine.org/redmine/trunk@12944 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-02-28 13:16:46 +00:00
max_size = 16.megabytes
change_column :changesets, :comments, :text, :limit => max_size
end
end
def down
# no-op
end
end
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.1 Page: 158ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API