mirror of
https://github.com/redmine/redmine.git
synced 2025-10-26 07:46:17 +01:00
Removes unused column trackers.is_in_chlog (#31132).
git-svn-id: http://svn.redmine.org/redmine/trunk@21106 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
9
db/migrate/20210728131544_drop_is_in_chlog_column.rb
Normal file
9
db/migrate/20210728131544_drop_is_in_chlog_column.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
class DropIsInChlogColumn < ActiveRecord::Migration[6.1]
|
||||
def self.up
|
||||
remove_column :trackers, :is_in_chlog
|
||||
end
|
||||
|
||||
def self.down
|
||||
add_column :trackers, :is_in_chlog, :boolean, :default => true, :null => false
|
||||
end
|
||||
end
|
||||
@@ -155,9 +155,9 @@ module Redmine
|
||||
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 = [
|
||||
|
||||
3
test/fixtures/trackers.yml
vendored
3
test/fixtures/trackers.yml
vendored
@@ -2,20 +2,17 @@
|
||||
trackers_001:
|
||||
name: Bug
|
||||
id: 1
|
||||
is_in_chlog: true
|
||||
default_status_id: 1
|
||||
position: 1
|
||||
description: Description for Bug tracker
|
||||
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:
|
||||
name: Support request
|
||||
id: 3
|
||||
is_in_chlog: false
|
||||
default_status_id: 1
|
||||
position: 3
|
||||
|
||||
Reference in New Issue
Block a user