mirror of
https://github.com/meineerde/redmine.git
synced 2025-10-17 17:01:01 +00:00
Raises length of issue description and journals for MySQL (#20127).
git-svn-id: http://svn.redmine.org/redmine/trunk@15905 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
b3ddd37346
commit
daf1342c04
12
db/migrate/20161010081301_change_issues_description_limit.rb
Normal file
12
db/migrate/20161010081301_change_issues_description_limit.rb
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
class ChangeIssuesDescriptionLimit < ActiveRecord::Migration
|
||||||
|
def up
|
||||||
|
if ActiveRecord::Base.connection.adapter_name =~ /mysql/i
|
||||||
|
max_size = 16.megabytes
|
||||||
|
change_column :issues, :description, :text, :limit => max_size
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def down
|
||||||
|
# no-op
|
||||||
|
end
|
||||||
|
end
|
||||||
@ -0,0 +1,13 @@
|
|||||||
|
class ChangeJournalDetailsValueLimit < ActiveRecord::Migration
|
||||||
|
def up
|
||||||
|
if ActiveRecord::Base.connection.adapter_name =~ /mysql/i
|
||||||
|
max_size = 16.megabytes
|
||||||
|
change_column :journal_details, :value, :text, :limit => max_size
|
||||||
|
change_column :journal_details, :old_value, :text, :limit => max_size
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def down
|
||||||
|
# no-op
|
||||||
|
end
|
||||||
|
end
|
||||||
12
db/migrate/20161010081600_change_journals_notes_limit.rb
Normal file
12
db/migrate/20161010081600_change_journals_notes_limit.rb
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
class ChangeJournalsNotesLimit < ActiveRecord::Migration
|
||||||
|
def up
|
||||||
|
if ActiveRecord::Base.connection.adapter_name =~ /mysql/i
|
||||||
|
max_size = 16.megabytes
|
||||||
|
change_column :journals, :notes, :text, :limit => max_size
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def down
|
||||||
|
# no-op
|
||||||
|
end
|
||||||
|
end
|
||||||
Loading…
x
Reference in New Issue
Block a user