summaryrefslogtreecommitdiffstats
path: root/server/sonar-web
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2016-03-14 10:28:50 +0100
committerSimon Brandhof <simon.brandhof@sonarsource.com>2016-03-15 11:48:11 +0100
commitf34cff29d700d04018b1fa89c4bf44e4c04c4342 (patch)
tree8d6ee604297dbfd26397886ea0c96fdb04602e7b /server/sonar-web
parent4bc2b8da3227c3aee75248ee9ee178875e49d386 (diff)
downloadsonarqube-f34cff29d700d04018b1fa89c4bf44e4c04c4342.tar.gz
sonarqube-f34cff29d700d04018b1fa89c4bf44e4c04c4342.zip
SONAR-7321 sanitize some DB columns
- ISSUE_CHANGES.USER_LOGIN on all databases except H2 - ACTIVITIES.USER_LOGIN is too small on MsSQL and H2 - RULES.PLUGIN_CONFIG_KEY is too big on H2 - AUTHORS.LOGIN is too small on H2
Diffstat (limited to 'server/sonar-web')
-rw-r--r--server/sonar-web/src/main/webapp/WEB-INF/db/migrate/1118_fix_size_of_issue_changes_login.rb31
1 files changed, 31 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/1118_fix_size_of_issue_changes_login.rb b/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/1118_fix_size_of_issue_changes_login.rb
new file mode 100644
index 00000000000..603d1730bdb
--- /dev/null
+++ b/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/1118_fix_size_of_issue_changes_login.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.5
+# SONAR-7321
+#
+class FixSizeOfIssueChangesLogin < ActiveRecord::Migration
+
+ def self.up
+ change_column :issue_changes, :user_login, :string, :limit => 255
+ end
+
+end