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-15 13:00:25 +01:00
Code Issues Packages Projects Releases Activity
Files
f6cfc6812119576bf6902a2d61fa1edb5b4886a0
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: 113ms Template: 2ms
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