Project

General

Profile

Feature #43895 » 0001-Persist-default-default_issue_start_date_to_creation.patch

Go MAEDA, 2026-05-26 04:55

View differences:

db/migrate/017_create_settings.rb
9 9
    Setting.create!(name: 'default_notification_option', value: Setting.default_notification_option)
10 10
    Setting.create!(name: 'text_formatting', value: Setting.text_formatting)
11 11
    Setting.create!(name: 'wiki_tablesort_enabled', value: Setting.wiki_tablesort_enabled)
12

  
13
    # `default_issue_start_date_to_creation_date` should also be inserted here
14
    # for new installations, but its name exceeds the 30-character limit of the
15
    # settings.name column at this point. It is inserted after the column is
16
    # extended in 20090318181151_extend_settings_name.rb.
12 17
  end
13 18

  
14 19
  def self.down
db/migrate/20090318181151_extend_settings_name.rb
1 1
class ExtendSettingsName < ActiveRecord::Migration[4.2]
2 2
  def self.up
3 3
    change_column :settings, :name, :string, :limit => 255, :default => '', :null => false
4

  
5
    # This setting is a default setting for new installations. It should be
6
    # inserted in 017_create_settings.rb with the other default settings, but
7
    # its name exceeds the original 30-character limit of the settings.name
8
    # column.
9
    Setting.create!(
10
      :name => 'default_issue_start_date_to_creation_date',
11
      :value => Setting.default_issue_start_date_to_creation_date
12
    )
4 13
  end
5 14

  
6 15
  def self.down
(2-2/2)