From 9113a3ddd0f293ad533c324f966305f52d0167db Mon Sep 17 00:00:00 2001 From: Evgeny Mandrikov Date: Tue, 31 Jan 2012 23:16:27 +0400 Subject: Add column PROJECT_MEASURES.COMMITTER --- .../api/PurgeUtilsTest/purgeSnapshots-result.xml | 4 +++ .../api/PurgeUtilsTest/purgeSnapshots.xml | 4 +++ .../batch/index/MeasurePersisterTest/shared.xml | 5 ++-- .../shouldDelaySaving-result.xml | 14 +++++----- .../shouldInsertMeasure-result.xml | 4 ++- ...otDelaySavingWithDatabaseOnlyMeasure-result.xml | 5 +++- .../shouldUpdateMeasure-result.xml | 5 ++-- .../java/org/sonar/jpa/entity/SchemaMigration.java | 2 +- .../org/sonar/core/persistence/rows-derby.sql | 1 + .../org/sonar/core/persistence/schema-derby.ddl | 1 + .../PurgeDaoTest/shouldDeleteSnapshot-result.xml | 3 ++- .../purge/PurgeDaoTest/shouldDeleteSnapshot.xml | 4 ++- ...eteWastedMeasuresWhenPurgingSnapshot-result.xml | 6 ++++- ...ouldDeleteWastedMeasuresWhenPurgingSnapshot.xml | 6 ++++- .../PurgeDaoTest/shouldPurgeSnapshot-result.xml | 4 ++- .../purge/PurgeDaoTest/shouldPurgeSnapshot.xml | 4 ++- .../db/migrate/256_add_measures_committer.rb | 30 ++++++++++++++++++++++ 17 files changed, 81 insertions(+), 21 deletions(-) create mode 100644 sonar-server/src/main/webapp/WEB-INF/db/migrate/256_add_measures_committer.rb 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 160173688ec..2b4bb07c497 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 @@ -72,6 +72,7 @@ rule_priority="[null]" alert_text="[null]" ID="1" VALUE="10.0" METRIC_ID="1" SNAPSHOT_ID="1" rules_category_id="[null]" RULE_ID="1" + committer="[null]" text_value="[null]" tendency="[null]" measure_date="[null]" project_id="[null]" alert_status="[null]" description="[null]"/> @@ -79,6 +80,7 @@ rule_priority="[null]" alert_text="[null]" ID="2" VALUE="10.0" METRIC_ID="1" SNAPSHOT_ID="2" rules_category_id="[null]" RULE_ID="1" + committer="[null]" text_value="[null]" tendency="[null]" measure_date="[null]" project_id="[null]" alert_status="[null]" description="[null]"/> @@ -86,6 +88,7 @@ + @@ -93,6 +96,7 @@ + diff --git a/plugins/sonar-dbcleaner-plugin/src/test/resources/org/sonar/plugins/dbcleaner/api/PurgeUtilsTest/purgeSnapshots.xml b/plugins/sonar-dbcleaner-plugin/src/test/resources/org/sonar/plugins/dbcleaner/api/PurgeUtilsTest/purgeSnapshots.xml index dc7938cdd53..a71f43da47e 100644 --- a/plugins/sonar-dbcleaner-plugin/src/test/resources/org/sonar/plugins/dbcleaner/api/PurgeUtilsTest/purgeSnapshots.xml +++ b/plugins/sonar-dbcleaner-plugin/src/test/resources/org/sonar/plugins/dbcleaner/api/PurgeUtilsTest/purgeSnapshots.xml @@ -78,6 +78,7 @@ rule_priority="[null]" alert_text="[null]" ID="1" VALUE="10.0" METRIC_ID="1" SNAPSHOT_ID="1" rules_category_id="[null]" RULE_ID="1" + committer="[null]" text_value="[null]" tendency="[null]" measure_date="[null]" project_id="[null]" alert_status="[null]" description="[null]"/> @@ -85,6 +86,7 @@ rule_priority="[null]" alert_text="[null]" ID="2" VALUE="10.0" METRIC_ID="1" SNAPSHOT_ID="2" rules_category_id="[null]" RULE_ID="1" + committer="[null]" text_value="[null]" tendency="[null]" measure_date="[null]" project_id="[null]" alert_status="[null]" description="[null]"/> @@ -92,6 +94,7 @@ rule_priority="[null]" alert_text="[null]" ID="3" VALUE="10.0" METRIC_ID="1" SNAPSHOT_ID="3" rules_category_id="[null]" RULE_ID="1" + committer="[null]" text_value="[null]" tendency="[null]" measure_date="[null]" project_id="[null]" alert_status="[null]" description="[null]"/> @@ -99,6 +102,7 @@ rule_priority="[null]" alert_text="[null]" ID="4" VALUE="10.0" METRIC_ID="1" SNAPSHOT_ID="4" rules_category_id="[null]" RULE_ID="1" + committer="[null]" text_value="[null]" tendency="[null]" measure_date="[null]" project_id="[null]" alert_status="[null]" description="[null]"/> diff --git a/sonar-batch/src/test/resources/org/sonar/batch/index/MeasurePersisterTest/shared.xml b/sonar-batch/src/test/resources/org/sonar/batch/index/MeasurePersisterTest/shared.xml index 31ad2b24475..7babf7adaa5 100644 --- a/sonar-batch/src/test/resources/org/sonar/batch/index/MeasurePersisterTest/shared.xml +++ b/sonar-batch/src/test/resources/org/sonar/batch/index/MeasurePersisterTest/shared.xml @@ -33,8 +33,7 @@ - - - \ No newline at end of file + diff --git a/sonar-batch/src/test/resources/org/sonar/batch/index/MeasurePersisterTest/shouldDelaySaving-result.xml b/sonar-batch/src/test/resources/org/sonar/batch/index/MeasurePersisterTest/shouldDelaySaving-result.xml index 68186ddd918..80aad10108a 100644 --- a/sonar-batch/src/test/resources/org/sonar/batch/index/MeasurePersisterTest/shouldDelaySaving-result.xml +++ b/sonar-batch/src/test/resources/org/sonar/batch/index/MeasurePersisterTest/shouldDelaySaving-result.xml @@ -32,22 +32,22 @@ - \ No newline at end of file + diff --git a/sonar-batch/src/test/resources/org/sonar/batch/index/MeasurePersisterTest/shouldInsertMeasure-result.xml b/sonar-batch/src/test/resources/org/sonar/batch/index/MeasurePersisterTest/shouldInsertMeasure-result.xml index c9ebfefebf6..d5bb93e10fd 100644 --- a/sonar-batch/src/test/resources/org/sonar/batch/index/MeasurePersisterTest/shouldInsertMeasure-result.xml +++ b/sonar-batch/src/test/resources/org/sonar/batch/index/MeasurePersisterTest/shouldInsertMeasure-result.xml @@ -33,11 +33,13 @@ - \ No newline at end of file + diff --git a/sonar-batch/src/test/resources/org/sonar/batch/index/MeasurePersisterTest/shouldNotDelaySavingWithDatabaseOnlyMeasure-result.xml b/sonar-batch/src/test/resources/org/sonar/batch/index/MeasurePersisterTest/shouldNotDelaySavingWithDatabaseOnlyMeasure-result.xml index 0f12743ae7d..e7a2a069e27 100644 --- a/sonar-batch/src/test/resources/org/sonar/batch/index/MeasurePersisterTest/shouldNotDelaySavingWithDatabaseOnlyMeasure-result.xml +++ b/sonar-batch/src/test/resources/org/sonar/batch/index/MeasurePersisterTest/shouldNotDelaySavingWithDatabaseOnlyMeasure-result.xml @@ -33,18 +33,21 @@ + - \ No newline at end of file + diff --git a/sonar-batch/src/test/resources/org/sonar/batch/index/MeasurePersisterTest/shouldUpdateMeasure-result.xml b/sonar-batch/src/test/resources/org/sonar/batch/index/MeasurePersisterTest/shouldUpdateMeasure-result.xml index 00a8539678d..44f8643e2cd 100644 --- a/sonar-batch/src/test/resources/org/sonar/batch/index/MeasurePersisterTest/shouldUpdateMeasure-result.xml +++ b/sonar-batch/src/test/resources/org/sonar/batch/index/MeasurePersisterTest/shouldUpdateMeasure-result.xml @@ -5,7 +5,7 @@