aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2011-04-12 17:14:34 +0200
committersimonbrandhof <simon.brandhof@gmail.com>2011-04-12 17:14:34 +0200
commit31349321b04541dbfd57c0162a3ce0ec4946641e (patch)
tree058bb76e1650a56f381f587aed28217dc5a4a73d /sonar-server
parentf3461ab00d488735d61472e95ffedd4429dfa8f3 (diff)
downloadsonarqube-31349321b04541dbfd57c0162a3ce0ec4946641e.tar.gz
sonarqube-31349321b04541dbfd57c0162a3ce0ec4946641e.zip
SONAR-1957 add the column RULE_FAILURES.SWITCHED_OFF (boolean)
Diffstat (limited to 'sonar-server')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/db/migrate/190_add_permanent_id_and_switched_off_to_rule_failures.rb (renamed from sonar-server/src/main/webapp/WEB-INF/db/migrate/190_add_rule_failures_permanent_id.rb)4
1 files changed, 3 insertions, 1 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/db/migrate/190_add_rule_failures_permanent_id.rb b/sonar-server/src/main/webapp/WEB-INF/db/migrate/190_add_permanent_id_and_switched_off_to_rule_failures.rb
index a125c3042a7..281bcd0b233 100644
--- a/sonar-server/src/main/webapp/WEB-INF/db/migrate/190_add_rule_failures_permanent_id.rb
+++ b/sonar-server/src/main/webapp/WEB-INF/db/migrate/190_add_permanent_id_and_switched_off_to_rule_failures.rb
@@ -21,10 +21,12 @@
#
# Sonar 2.8
#
-class AddRuleFailuresPermanentId < ActiveRecord::Migration
+class AddPermanentIdAndSwitchedOffToRuleFailures < ActiveRecord::Migration
def self.up
add_column 'rule_failures', 'permanent_id', :integer, :null => 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