Project

General

Profile

Patch #31555 » mysqlhelper.patch

Pavel Rosický, 2019-06-11 21:45

View differences:

20091227112908_change_wiki_contents_text_limit.rb (working copy)
3 3
    # Migrates MySQL databases only
4 4
    # Postgres would raise an error (see http://dev.rubyonrails.org/ticket/3818)
5 5
    # Not fixed in Rails 2.3.5
6
    if ActiveRecord::Base.connection.adapter_name =~ /mysql/i
6
    if Redmine::Database.mysql?
7 7
      max_size = 16.megabytes
8 8
      change_column :wiki_contents, :text, :text, :limit => max_size
9 9
      change_column :wiki_content_versions, :data, :binary, :limit => max_size
20140228130325_change_changesets_comments_limit.rb (working copy)
1 1
class ChangeChangesetsCommentsLimit < ActiveRecord::Migration[4.2]
2 2
  def up
3
    if ActiveRecord::Base.connection.adapter_name =~ /mysql/i
3
    if Redmine::Database.mysql?
4 4
      max_size = 16.megabytes
5 5
      change_column :changesets, :comments, :text, :limit => max_size
6 6
    end
20161010081301_change_issues_description_limit.rb (working copy)
1 1
class ChangeIssuesDescriptionLimit < ActiveRecord::Migration[4.2]
2 2
  def up
3
    if ActiveRecord::Base.connection.adapter_name =~ /mysql/i
3
    if Redmine::Database.mysql?
4 4
      max_size = 16.megabytes
5 5
      change_column :issues, :description, :text, :limit => max_size
6 6
    end
20161010081528_change_journal_details_value_limit.rb (working copy)
1 1
class ChangeJournalDetailsValueLimit < ActiveRecord::Migration[4.2]
2 2
  def up
3
    if ActiveRecord::Base.connection.adapter_name =~ /mysql/i
3
    if Redmine::Database.mysql?
4 4
      max_size = 16.megabytes
5 5
      change_column :journal_details, :value, :text, :limit => max_size
6 6
      change_column :journal_details, :old_value, :text, :limit => max_size
20161010081600_change_journals_notes_limit.rb (working copy)
1 1
class ChangeJournalsNotesLimit < ActiveRecord::Migration[4.2]
2 2
  def up
3
    if ActiveRecord::Base.connection.adapter_name =~ /mysql/i
3
    if Redmine::Database.mysql?
4 4
      max_size = 16.megabytes
5 5
      change_column :journals, :notes, :text, :limit => max_size
6 6
    end
20170320051650_change_repositories_extra_info_limit.rb (working copy)
1 1
class ChangeRepositoriesExtraInfoLimit < ActiveRecord::Migration[4.2]
2 2
  def up
3
    if ActiveRecord::Base.connection.adapter_name =~ /mysql/i
3
    if Redmine::Database.mysql?
4 4
      max_size = 16.megabytes
5 5
      change_column :repositories, :extra_info, :text, :limit => max_size
6 6
    end
20190315094151_change_custom_values_value_limit.rb (working copy)
1 1
class ChangeCustomValuesValueLimit < ActiveRecord::Migration[5.2]
2 2
  def up
3
    if ActiveRecord::Base.connection.adapter_name =~ /mysql/i
3
    if Redmine::Database.mysql?
4 4
      max_size = 16.megabytes
5 5
      change_column :custom_values, :value, :text, :limit => max_size
6 6
    end
    (1-1/1)