From f8961c4b761b4d11b0e9823b899dfaabfe399f71 Mon Sep 17 00:00:00 2001 From: Godin Date: Fri, 3 Dec 2010 12:00:23 +0000 Subject: SONAR-1450: Add checksum to RuleFailureModel and use it in ViolationPersisterDecorator --- .../db/migrate/160_add_rule_failures_columns.rb | 31 ++++++++++++++++++++++ .../160_add_rule_failures_created_at_column.rb | 30 --------------------- 2 files changed, 31 insertions(+), 30 deletions(-) create mode 100644 sonar-server/src/main/webapp/WEB-INF/db/migrate/160_add_rule_failures_columns.rb delete mode 100644 sonar-server/src/main/webapp/WEB-INF/db/migrate/160_add_rule_failures_created_at_column.rb (limited to 'sonar-server') diff --git a/sonar-server/src/main/webapp/WEB-INF/db/migrate/160_add_rule_failures_columns.rb b/sonar-server/src/main/webapp/WEB-INF/db/migrate/160_add_rule_failures_columns.rb new file mode 100644 index 00000000000..066c0c473d0 --- /dev/null +++ b/sonar-server/src/main/webapp/WEB-INF/db/migrate/160_add_rule_failures_columns.rb @@ -0,0 +1,31 @@ +# +# Sonar, entreprise quality control tool. +# Copyright (C) 2009 SonarSource SA +# mailto:contact AT sonarsource DOT com +# +# Sonar is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 3 of the License, or (at your option) any later version. +# +# Sonar is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with Sonar; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 +# + +# +# Sonar 2.5 +# +class AddRuleFailuresColumns < ActiveRecord::Migration + + def self.up + add_column 'rule_failures', 'created_at', :datetime, :null => true + add_column 'rule_failures', 'checksum', :string , :null => true, :limit => 1000 + end + +end diff --git a/sonar-server/src/main/webapp/WEB-INF/db/migrate/160_add_rule_failures_created_at_column.rb b/sonar-server/src/main/webapp/WEB-INF/db/migrate/160_add_rule_failures_created_at_column.rb deleted file mode 100644 index f5e0aea9860..00000000000 --- a/sonar-server/src/main/webapp/WEB-INF/db/migrate/160_add_rule_failures_created_at_column.rb +++ /dev/null @@ -1,30 +0,0 @@ -# -# Sonar, entreprise quality control tool. -# Copyright (C) 2009 SonarSource SA -# mailto:contact AT sonarsource DOT com -# -# Sonar is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 3 of the License, or (at your option) any later version. -# -# Sonar is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with Sonar; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 -# - -# -# Sonar 2.5 -# -class AddRuleFailuresCreatedAtColumn < ActiveRecord::Migration - - def self.up - add_column 'rule_failures', 'created_at', :datetime, :null => true - end - -end -- cgit v1.2.3