diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2013-05-21 17:22:41 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2013-05-21 17:22:41 +0200 |
commit | ec9827c544ec3d2e46744db2963861bd25d0bf92 (patch) | |
tree | 5cfb645e4d7c0707db227a6df89558721ec96705 | |
parent | 714ba2eebc1084830dfa38b093583624b6fa07ff (diff) | |
download | sonarqube-ec9827c544ec3d2e46744db2963861bd25d0bf92.tar.gz sonarqube-ec9827c544ec3d2e46744db2963861bd25d0bf92.zip |
SONAR-4305 change some logs and comments
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/db/migrate/399_migrate_violations_to_issues.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/db/migrate/399_migrate_violations_to_issues.rb b/sonar-server/src/main/webapp/WEB-INF/db/migrate/399_migrate_violations_to_issues.rb index 69662da4dfb..256194ac9e2 100644 --- a/sonar-server/src/main/webapp/WEB-INF/db/migrate/399_migrate_violations_to_issues.rb +++ b/sonar-server/src/main/webapp/WEB-INF/db/migrate/399_migrate_violations_to_issues.rb @@ -42,12 +42,11 @@ class MigrateViolationsToIssues < ActiveRecord::Migration PRIORITY_TO_SEVERITY = {1 => 'INFO', 2 => 'MINOR', 3 => 'MAJOR', 4 => 'CRITICAL', 5 => 'BLOCKER'} def self.up - # TODO another migration to delete duplications in reviews truncate_issues violation_ids = ActiveRecord::Base.connection.select_rows('select id from rule_failures') - say_with_time "Migrating #{violation_ids.size} violations to issues" do + say_with_time "Converting #{violation_ids.size} violations to issues" do logins_by_id = User.all.inject({}) do |result, user| result[user.id]=user.login result @@ -127,6 +126,7 @@ class MigrateViolationsToIssues < ActiveRecord::Migration end end + #TODO #drop_table('rule_failures') #drop_table('reviews') #drop_table('review_comments') |