Skip to content

Commit

Permalink
[api] fix rollback when user has modified tracking data
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Dec 12, 2014
1 parent 7a90121 commit 8e0aebe
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/api/db/migrate/20141125105426_add_github_issue_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@ def self.up
end

def self.down
IssueTracker.where(name: 'obs').first.destroy
IssueTracker.where(name: 'build').first.destroy
IssueTracker.where(name: 'osc').first.destroy
i = IssueTracker.where(name: 'obs').first
i.destroy if i
i = IssueTracker.where(name: 'build').first
i.destroy if i
i = IssueTracker.where(name: 'osc').first
i.destroy if i

execute "alter table issue_trackers modify column kind enum('other','bugzilla','cve','fate','trac','launchpad','sourceforge') not null;"
end
Expand Down

0 comments on commit 8e0aebe

Please sign in to comment.