From c3b8fd1beb8da4f2e72cbe2b6e695c14859d6745 Mon Sep 17 00:00:00 2001 From: simonbrandhof Date: Fri, 3 Dec 2010 00:13:09 +0000 Subject: [PATCH] document the sonar version in db migration scripts --- .../webapp/WEB-INF/db/migrate/131_create_quality_models.rb | 4 ++++ .../db/migrate/132_add_characteristic_id_to_measures.rb | 4 ++++ .../src/main/webapp/WEB-INF/db/migrate/133_create_plugins.rb | 4 ++++ .../WEB-INF/db/migrate/134_delete_checkstyle_translations.rb | 4 ++++ .../webapp/WEB-INF/db/migrate/135_add_rules_enabled_column.rb | 4 ++++ .../webapp/WEB-INF/db/migrate/136_increase_violations_size.rb | 4 ++++ .../webapp/WEB-INF/db/migrate/137_add_rules_cardinality.rb | 4 ++++ .../WEB-INF/db/migrate/138_add_characteristic_description.rb | 4 ++++ .../WEB-INF/db/migrate/139_add_characteristic_enabled.rb | 4 ++++ .../db/migrate/140_create_characteristic_properties.rb | 4 ++++ .../webapp/WEB-INF/db/migrate/141_add_rule_failures_cost.rb | 4 ++++ .../WEB-INF/db/migrate/142_delete_active_rules_orphans.rb | 4 ++++ 12 files changed, 48 insertions(+) diff --git a/sonar-server/src/main/webapp/WEB-INF/db/migrate/131_create_quality_models.rb b/sonar-server/src/main/webapp/WEB-INF/db/migrate/131_create_quality_models.rb index 85b178057f7..2bc3678d79e 100644 --- a/sonar-server/src/main/webapp/WEB-INF/db/migrate/131_create_quality_models.rb +++ b/sonar-server/src/main/webapp/WEB-INF/db/migrate/131_create_quality_models.rb @@ -17,6 +17,10 @@ # License along with Sonar; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 # + +# +# Sonar 2.3 +# class CreateQualityModels < ActiveRecord::Migration def self.up diff --git a/sonar-server/src/main/webapp/WEB-INF/db/migrate/132_add_characteristic_id_to_measures.rb b/sonar-server/src/main/webapp/WEB-INF/db/migrate/132_add_characteristic_id_to_measures.rb index 16f064c29bd..1aacfa706a3 100644 --- a/sonar-server/src/main/webapp/WEB-INF/db/migrate/132_add_characteristic_id_to_measures.rb +++ b/sonar-server/src/main/webapp/WEB-INF/db/migrate/132_add_characteristic_id_to_measures.rb @@ -17,6 +17,10 @@ # License along with Sonar; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 # + +# +# Sonar 2.3 +# class AddCharacteristicIdToMeasures < ActiveRecord::Migration def self.up diff --git a/sonar-server/src/main/webapp/WEB-INF/db/migrate/133_create_plugins.rb b/sonar-server/src/main/webapp/WEB-INF/db/migrate/133_create_plugins.rb index 061eeaff70f..0474d771ee7 100644 --- a/sonar-server/src/main/webapp/WEB-INF/db/migrate/133_create_plugins.rb +++ b/sonar-server/src/main/webapp/WEB-INF/db/migrate/133_create_plugins.rb @@ -17,6 +17,10 @@ # License along with Sonar; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 # + +# +# Sonar 2.3 +# class CreatePlugins < ActiveRecord::Migration def self.up diff --git a/sonar-server/src/main/webapp/WEB-INF/db/migrate/134_delete_checkstyle_translations.rb b/sonar-server/src/main/webapp/WEB-INF/db/migrate/134_delete_checkstyle_translations.rb index 412d150692b..f15f6ec3518 100644 --- a/sonar-server/src/main/webapp/WEB-INF/db/migrate/134_delete_checkstyle_translations.rb +++ b/sonar-server/src/main/webapp/WEB-INF/db/migrate/134_delete_checkstyle_translations.rb @@ -17,6 +17,10 @@ # License along with Sonar; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 # + +# +# Sonar 2.3 +# class DeleteCheckstyleTranslations < ActiveRecord::Migration def self.up diff --git a/sonar-server/src/main/webapp/WEB-INF/db/migrate/135_add_rules_enabled_column.rb b/sonar-server/src/main/webapp/WEB-INF/db/migrate/135_add_rules_enabled_column.rb index 162e0f76882..41a68b9173a 100644 --- a/sonar-server/src/main/webapp/WEB-INF/db/migrate/135_add_rules_enabled_column.rb +++ b/sonar-server/src/main/webapp/WEB-INF/db/migrate/135_add_rules_enabled_column.rb @@ -17,6 +17,10 @@ # License along with Sonar; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 # + +# +# Sonar 2.3 +# class AddRulesEnabledColumn < ActiveRecord::Migration def self.up diff --git a/sonar-server/src/main/webapp/WEB-INF/db/migrate/136_increase_violations_size.rb b/sonar-server/src/main/webapp/WEB-INF/db/migrate/136_increase_violations_size.rb index 2b3443b94df..6f4868b8885 100644 --- a/sonar-server/src/main/webapp/WEB-INF/db/migrate/136_increase_violations_size.rb +++ b/sonar-server/src/main/webapp/WEB-INF/db/migrate/136_increase_violations_size.rb @@ -17,6 +17,10 @@ # License along with Sonar; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 # + +# +# Sonar 2.3 +# class IncreaseViolationsSize < ActiveRecord::Migration def self.up diff --git a/sonar-server/src/main/webapp/WEB-INF/db/migrate/137_add_rules_cardinality.rb b/sonar-server/src/main/webapp/WEB-INF/db/migrate/137_add_rules_cardinality.rb index 1b5d1c72cbf..106ff2374a0 100644 --- a/sonar-server/src/main/webapp/WEB-INF/db/migrate/137_add_rules_cardinality.rb +++ b/sonar-server/src/main/webapp/WEB-INF/db/migrate/137_add_rules_cardinality.rb @@ -17,6 +17,10 @@ # License along with Sonar; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 # + +# +# Sonar 2.3 +# class AddRulesCardinality < ActiveRecord::Migration def self.up diff --git a/sonar-server/src/main/webapp/WEB-INF/db/migrate/138_add_characteristic_description.rb b/sonar-server/src/main/webapp/WEB-INF/db/migrate/138_add_characteristic_description.rb index cef6e279898..c4a9d1d8aea 100644 --- a/sonar-server/src/main/webapp/WEB-INF/db/migrate/138_add_characteristic_description.rb +++ b/sonar-server/src/main/webapp/WEB-INF/db/migrate/138_add_characteristic_description.rb @@ -17,6 +17,10 @@ # License along with Sonar; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 # + +# +# Sonar 2.3 +# class AddCharacteristicDescription < ActiveRecord::Migration def self.up diff --git a/sonar-server/src/main/webapp/WEB-INF/db/migrate/139_add_characteristic_enabled.rb b/sonar-server/src/main/webapp/WEB-INF/db/migrate/139_add_characteristic_enabled.rb index ec149acfb09..c146ef9f9d4 100644 --- a/sonar-server/src/main/webapp/WEB-INF/db/migrate/139_add_characteristic_enabled.rb +++ b/sonar-server/src/main/webapp/WEB-INF/db/migrate/139_add_characteristic_enabled.rb @@ -17,6 +17,10 @@ # License along with Sonar; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 # + +# +# Sonar 2.3 +# class AddCharacteristicEnabled < ActiveRecord::Migration def self.up diff --git a/sonar-server/src/main/webapp/WEB-INF/db/migrate/140_create_characteristic_properties.rb b/sonar-server/src/main/webapp/WEB-INF/db/migrate/140_create_characteristic_properties.rb index ced0fc586ff..3faa46fc0d3 100644 --- a/sonar-server/src/main/webapp/WEB-INF/db/migrate/140_create_characteristic_properties.rb +++ b/sonar-server/src/main/webapp/WEB-INF/db/migrate/140_create_characteristic_properties.rb @@ -17,6 +17,10 @@ # License along with Sonar; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 # + +# +# Sonar 2.3 +# class CreateCharacteristicProperties < ActiveRecord::Migration def self.up diff --git a/sonar-server/src/main/webapp/WEB-INF/db/migrate/141_add_rule_failures_cost.rb b/sonar-server/src/main/webapp/WEB-INF/db/migrate/141_add_rule_failures_cost.rb index c2cf2737298..bcdfb838226 100644 --- a/sonar-server/src/main/webapp/WEB-INF/db/migrate/141_add_rule_failures_cost.rb +++ b/sonar-server/src/main/webapp/WEB-INF/db/migrate/141_add_rule_failures_cost.rb @@ -17,6 +17,10 @@ # License along with Sonar; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 # + +# +# Sonar 2.3 +# class AddRuleFailuresCost < ActiveRecord::Migration def self.up diff --git a/sonar-server/src/main/webapp/WEB-INF/db/migrate/142_delete_active_rules_orphans.rb b/sonar-server/src/main/webapp/WEB-INF/db/migrate/142_delete_active_rules_orphans.rb index 8c56dc3caf3..9ba2eb52e3c 100644 --- a/sonar-server/src/main/webapp/WEB-INF/db/migrate/142_delete_active_rules_orphans.rb +++ b/sonar-server/src/main/webapp/WEB-INF/db/migrate/142_delete_active_rules_orphans.rb @@ -17,6 +17,10 @@ # License along with Sonar; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 # + +# +# Sonar 2.3.1 +# class DeleteActiveRulesOrphans < ActiveRecord::Migration def self.up -- 2.39.5