Defect #31132 » 0001-Remove-unused-column-trackers.is_in_chlog-31132.patch
| db/migrate/20210704131544_drop_is_in_chlog_column.rb | ||
|---|---|---|
|
class DropIsInChlogColumn < ActiveRecord::Migration[6.1]
|
||
|
def self.up
|
||
|
remove_column :trackers, :is_in_chlog
|
||
|
end
|
||
|
def self.down
|
||
|
raise IrreversibleMigration
|
||
|
end
|
||
|
end
|
||
| lib/redmine/default_data/loader.rb | ||
|---|---|---|
|
rejected = IssueStatus.create!(:name => l(:default_issue_status_rejected), :is_closed => true, :position => 6)
|
||
|
# Trackers
|
||
|
bug = Tracker.create!(:name => l(:default_tracker_bug), :default_status_id => new.id, :is_in_chlog => true, :is_in_roadmap => false, :position => 1)
|
||
|
feature = Tracker.create!(:name => l(:default_tracker_feature), :default_status_id => new.id, :is_in_chlog => true, :is_in_roadmap => true, :position => 2)
|
||
|
support = Tracker.create!(:name => l(:default_tracker_support), :default_status_id => new.id, :is_in_chlog => false, :is_in_roadmap => false, :position => 3)
|
||
|
bug = Tracker.create!(:name => l(:default_tracker_bug), :default_status_id => new.id, :is_in_roadmap => false, :position => 1)
|
||
|
feature = Tracker.create!(:name => l(:default_tracker_feature), :default_status_id => new.id, :is_in_roadmap => true, :position => 2)
|
||
|
support = Tracker.create!(:name => l(:default_tracker_support), :default_status_id => new.id, :is_in_roadmap => false, :position => 3)
|
||
|
# Set trackers as defaults for new projects
|
||
|
Setting.default_projects_tracker_ids = [
|
||
| test/fixtures/trackers.yml | ||
|---|---|---|
|
---
|
||
|
trackers_001:
|
||
|
---
|
||
|
trackers_001:
|
||
|
name: Bug
|
||
|
id: 1
|
||
|
is_in_chlog: true
|
||
|
default_status_id: 1
|
||
|
position: 1
|
||
|
description: Description for Bug tracker
|
||
|
trackers_002:
|
||
|
trackers_002:
|
||
|
name: Feature request
|
||
|
id: 2
|
||
|
is_in_chlog: true
|
||
|
default_status_id: 1
|
||
|
position: 2
|
||
|
description: Description for Feature request tracker
|
||
|
trackers_003:
|
||
|
trackers_003:
|
||
|
name: Support request
|
||
|
id: 3
|
||
|
is_in_chlog: false
|
||
|
default_status_id: 1
|
||
|
position: 3
|
||