From 31349321b04541dbfd57c0162a3ce0ec4946641e Mon Sep 17 00:00:00 2001 From: simonbrandhof Date: Tue, 12 Apr 2011 17:14:34 +0200 Subject: [PATCH] SONAR-1957 add the column RULE_FAILURES.SWITCHED_OFF (boolean) --- .../api/PurgeUtilsTest/purgeSnapshots-result.xml | 8 ++++---- .../api/PurgeUtilsTest/purgeSnapshots.xml | 8 ++++---- .../purgeDeletedResources-result.xml | 8 ++++---- .../purgeDeletedResources.xml | 8 ++++---- .../purgeDeprecatedLast-result.xml | 8 ++++---- .../purgeDeprecatedLast.xml | 8 ++++---- .../PurgeEntitiesTest/purgeEntities-result.xml | 16 ++++++++-------- .../purges/PurgeEntitiesTest/purgeEntities.xml | 16 ++++++++-------- .../purgeUnprocessed-result.xml | 16 ++++++++-------- .../PurgeUnprocessedTest/purgeUnprocessed.xml | 16 ++++++++-------- .../PastViolationsLoaderTest/shared.xml | 4 ++-- .../index/ViolationPersisterTest/shared.xml | 4 ++-- ...ldCopyPermanentIdFromPastViolation-result.xml | 6 +++--- .../shouldInsertViolations-result.xml | 10 +++++----- ...otUpdatedWhenAnalyzingPastSnapshot-result.xml | 12 ++++++------ ...shotIsNotUpdatedWhenAnalyzingPastSnapshot.xml | 12 ++++++------ .../api/database/model/RuleFailureModel.java | 15 +++++++++++++-- ...nent_id_and_switched_off_to_rule_failures.rb} | 4 +++- 18 files changed, 96 insertions(+), 83 deletions(-) rename sonar-server/src/main/webapp/WEB-INF/db/migrate/{190_add_rule_failures_permanent_id.rb => 190_add_permanent_id_and_switched_off_to_rule_failures.rb} (87%) diff --git a/plugins/sonar-dbcleaner-plugin/src/test/resources/org/sonar/plugins/dbcleaner/api/PurgeUtilsTest/purgeSnapshots-result.xml b/plugins/sonar-dbcleaner-plugin/src/test/resources/org/sonar/plugins/dbcleaner/api/PurgeUtilsTest/purgeSnapshots-result.xml index 23bec12c6f9..912541667d8 100644 --- a/plugins/sonar-dbcleaner-plugin/src/test/resources/org/sonar/plugins/dbcleaner/api/PurgeUtilsTest/purgeSnapshots-result.xml +++ b/plugins/sonar-dbcleaner-plugin/src/test/resources/org/sonar/plugins/dbcleaner/api/PurgeUtilsTest/purgeSnapshots-result.xml @@ -56,10 +56,10 @@ - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + --> - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - + + diff --git a/sonar-batch/src/test/resources/org/sonar/batch/index/ViolationPersisterTest/shared.xml b/sonar-batch/src/test/resources/org/sonar/batch/index/ViolationPersisterTest/shared.xml index 32696a8a523..d1aab8335e3 100644 --- a/sonar-batch/src/test/resources/org/sonar/batch/index/ViolationPersisterTest/shared.xml +++ b/sonar-batch/src/test/resources/org/sonar/batch/index/ViolationPersisterTest/shared.xml @@ -19,6 +19,6 @@ scope="FIL" qualifier="CLA" created_at="2008-11-01 13:58:00.00" version="[null]" path="" status="U" islast="false" depth="3" /> - - + + diff --git a/sonar-batch/src/test/resources/org/sonar/batch/index/ViolationPersisterTest/shouldCopyPermanentIdFromPastViolation-result.xml b/sonar-batch/src/test/resources/org/sonar/batch/index/ViolationPersisterTest/shouldCopyPermanentIdFromPastViolation-result.xml index 0b126c584cd..cb60a28cdbb 100644 --- a/sonar-batch/src/test/resources/org/sonar/batch/index/ViolationPersisterTest/shouldCopyPermanentIdFromPastViolation-result.xml +++ b/sonar-batch/src/test/resources/org/sonar/batch/index/ViolationPersisterTest/shouldCopyPermanentIdFromPastViolation-result.xml @@ -19,8 +19,8 @@ scope="FIL" qualifier="CLA" created_at="2008-11-01 13:58:00.00" version="[null]" path="" status="U" islast="false" depth="3" /> - - + + - + diff --git a/sonar-batch/src/test/resources/org/sonar/batch/index/ViolationPersisterTest/shouldInsertViolations-result.xml b/sonar-batch/src/test/resources/org/sonar/batch/index/ViolationPersisterTest/shouldInsertViolations-result.xml index 9a2cbddd9dd..21e4bcea0f3 100644 --- a/sonar-batch/src/test/resources/org/sonar/batch/index/ViolationPersisterTest/shouldInsertViolations-result.xml +++ b/sonar-batch/src/test/resources/org/sonar/batch/index/ViolationPersisterTest/shouldInsertViolations-result.xml @@ -18,9 +18,9 @@ scope="FIL" qualifier="CLA" created_at="2008-11-01 13:58:00.00" version="[null]" path="" status="U" islast="false" depth="3" /> - - - - - + + + + + \ No newline at end of file diff --git a/sonar-batch/src/test/resources/org/sonar/batch/phases/UpdateStatusJobTest/lastSnapshotIsNotUpdatedWhenAnalyzingPastSnapshot-result.xml b/sonar-batch/src/test/resources/org/sonar/batch/phases/UpdateStatusJobTest/lastSnapshotIsNotUpdatedWhenAnalyzingPastSnapshot-result.xml index a2b0168b563..ef665b1aa91 100644 --- a/sonar-batch/src/test/resources/org/sonar/batch/phases/UpdateStatusJobTest/lastSnapshotIsNotUpdatedWhenAnalyzingPastSnapshot-result.xml +++ b/sonar-batch/src/test/resources/org/sonar/batch/phases/UpdateStatusJobTest/lastSnapshotIsNotUpdatedWhenAnalyzingPastSnapshot-result.xml @@ -57,13 +57,13 @@ - - - - + + + + - - + + - - - - + + + + - - + + true + add_column 'rule_failures', 'switched_off', :boolean, :null => true + add_index 'rule_failures', 'permanent_id', :name => 'rf_permanent_id' RuleFailure.reset_column_information end -- 2.39.5