aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/webapp
diff options
context:
space:
mode:
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2016-12-05 10:46:56 +0100
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2016-12-05 16:54:09 +0100
commit74c5ca3839bc61535a68d8eb7f89015c6f653b43 (patch)
treef243a7a2e476ab21b6bea58e52ab86742dcc1f34 /server/sonar-web/src/main/webapp
parent37494f41d3d07042fedb9bab93fb44587866db05 (diff)
downloadsonarqube-74c5ca3839bc61535a68d8eb7f89015c6f653b43.tar.gz
sonarqube-74c5ca3839bc61535a68d8eb7f89015c6f653b43.zip
SONAR-8464 Make column UUID of Events unique and non null
Diffstat (limited to 'server/sonar-web/src/main/webapp')
-rw-r--r--server/sonar-web/src/main/webapp/WEB-INF/db/migrate/1502_make_uuid_not_null_on_events.rb30
1 files changed, 30 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/1502_make_uuid_not_null_on_events.rb b/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/1502_make_uuid_not_null_on_events.rb
new file mode 100644
index 00000000000..02110478a03
--- /dev/null
+++ b/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/1502_make_uuid_not_null_on_events.rb
@@ -0,0 +1,30 @@
+#
+# SonarQube, open source software quality management tool.
+# Copyright (C) 2008-2016 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 6.3
+#
+class MakeUuidNotNullOnEvents < ActiveRecord::Migration
+
+ def self.up
+ execute_java_migration('org.sonar.db.version.v63.MakeUuidNotNullOnEvents')
+ add_index 'events', :uuid, :name => 'events_uuid', :unique => true
+ end
+end