aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web
diff options
context:
space:
mode:
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2015-03-23 11:29:03 +0100
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2015-03-26 14:51:08 +0100
commitac006c9d0639beb12c69b6db24c7b48d0f4ea064 (patch)
tree2a473128beb059f647f2d5bf55d10c875f97b59f /server/sonar-web
parentdd25739100ba7e9b2ad426e8b635692241387465 (diff)
downloadsonarqube-ac006c9d0639beb12c69b6db24c7b48d0f4ea064.tar.gz
sonarqube-ac006c9d0639beb12c69b6db24c7b48d0f4ea064.zip
SONAR-6327 Add is_default column to rules_profiles
Diffstat (limited to 'server/sonar-web')
-rw-r--r--server/sonar-web/src/main/webapp/WEB-INF/db/migrate/907_add_rules_profiles_is_default.rb31
1 files changed, 31 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/907_add_rules_profiles_is_default.rb b/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/907_add_rules_profiles_is_default.rb
new file mode 100644
index 00000000000..9c65e5a0248
--- /dev/null
+++ b/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/907_add_rules_profiles_is_default.rb
@@ -0,0 +1,31 @@
+#
+# SonarQube, open source software quality management tool.
+# Copyright (C) 2008-2014 SonarSource
+# mailto:contact AT sonarsource DOT com
+#
+# SonarQube 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.
+#
+# SonarQube 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 this program; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+
+#
+# SonarQube 5.2
+# SONAR-6237
+#
+class AddRulesProfilesIsDefault < ActiveRecord::Migration
+
+ def self.up
+ add_column 'rules_profiles', 'is_default', :boolean, :null => false, :default => false
+ end
+
+end