Feature #43895 » 0001-Persist-default-default_issue_start_date_to_creation.patch
| db/migrate/017_create_settings.rb | ||
|---|---|---|
|
Setting.create!(name: 'default_notification_option', value: Setting.default_notification_option)
|
||
|
Setting.create!(name: 'text_formatting', value: Setting.text_formatting)
|
||
|
Setting.create!(name: 'wiki_tablesort_enabled', value: Setting.wiki_tablesort_enabled)
|
||
|
# `default_issue_start_date_to_creation_date` should also be inserted here
|
||
|
# for new installations, but its name exceeds the 30-character limit of the
|
||
|
# settings.name column at this point. It is inserted after the column is
|
||
|
# extended in 20090318181151_extend_settings_name.rb.
|
||
|
end
|
||
|
def self.down
|
||
| db/migrate/20090318181151_extend_settings_name.rb | ||
|---|---|---|
|
class ExtendSettingsName < ActiveRecord::Migration[4.2]
|
||
|
def self.up
|
||
|
change_column :settings, :name, :string, :limit => 255, :default => '', :null => false
|
||
|
# This setting is a default setting for new installations. It should be
|
||
|
# inserted in 017_create_settings.rb with the other default settings, but
|
||
|
# its name exceeds the original 30-character limit of the settings.name
|
||
|
# column.
|
||
|
Setting.create!(
|
||
|
:name => 'default_issue_start_date_to_creation_date',
|
||
|
:value => Setting.default_issue_start_date_to_creation_date
|
||
|
)
|
||
|
end
|
||
|
def self.down
|
||
- « Previous
- 1
- 2
- Next »