aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server/src
diff options
context:
space:
mode:
authorFabrice Bellingard <bellingard@gmail.com>2012-03-26 18:56:38 +0200
committerFabrice Bellingard <bellingard@gmail.com>2012-03-26 18:56:38 +0200
commit3c98441e049fe73982ee3471ea0b9baa58fbaa91 (patch)
tree9f1e5f4d306deffc18fb4d360d29eaf664fb4830 /sonar-server/src
parente93d3eb4d95d89051eb9ea6f6ab6b8f2f6751487 (diff)
downloadsonarqube-3c98441e049fe73982ee3471ea0b9baa58fbaa91.tar.gz
sonarqube-3c98441e049fe73982ee3471ea0b9baa58fbaa91.zip
SONAR-3352 Change boolean columns to non-nullable in migration script
Diffstat (limited to 'sonar-server/src')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/db/migrate/282_update_reviews_boolean_columns.rb31
1 files changed, 31 insertions, 0 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/db/migrate/282_update_reviews_boolean_columns.rb b/sonar-server/src/main/webapp/WEB-INF/db/migrate/282_update_reviews_boolean_columns.rb
new file mode 100644
index 00000000000..e2b7515daf0
--- /dev/null
+++ b/sonar-server/src/main/webapp/WEB-INF/db/migrate/282_update_reviews_boolean_columns.rb
@@ -0,0 +1,31 @@
+#
+# Sonar, entreprise quality control tool.
+# Copyright (C) 2008-2012 SonarSource
+# 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.15
+#
+class UpdateReviewsBooleanColumns < ActiveRecord::Migration
+
+ def self.up
+ change_column 'reviews', 'manual_severity', :boolean, :null => false
+ change_column 'reviews', 'manual_violation', :boolean, :null => false
+ end
+
+end