From: Simon Brandhof Date: Tue, 21 May 2013 15:22:41 +0000 (+0200) Subject: SONAR-4305 change some logs and comments X-Git-Tag: 3.6~322 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ec9827c544ec3d2e46744db2963861bd25d0bf92;p=sonarqube.git SONAR-4305 change some logs and comments --- 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')