aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2016-10-12 17:50:21 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2016-10-13 12:13:11 +0200
commit0fda6a3c52bd398f8c7969a81ee649af1e62fa82 (patch)
tree4e548f3bea533f72a32d74000fb6c498a7c3ff77 /server
parent4fc17259a5634eb5f7ecd9859d9204c6a258f722 (diff)
downloadsonarqube-0fda6a3c52bd398f8c7969a81ee649af1e62fa82.tar.gz
sonarqube-0fda6a3c52bd398f8c7969a81ee649af1e62fa82.zip
SONAR-8134 add column user_roles.organization_uuid
Diffstat (limited to 'server')
-rw-r--r--server/sonar-web/src/main/webapp/WEB-INF/db/migrate/1408_add_organization_uuid_to_user_roles.rb29
-rw-r--r--server/sonar-web/src/main/webapp/WEB-INF/db/migrate/1409_populate_organization_uuid_of_user_roles.rb29
-rw-r--r--server/sonar-web/src/main/webapp/WEB-INF/db/migrate/1410_make_organization_uuid_not_null_on_user_roles.rb29
3 files changed, 87 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/1408_add_organization_uuid_to_user_roles.rb b/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/1408_add_organization_uuid_to_user_roles.rb
new file mode 100644
index 00000000000..977524cdcb8
--- /dev/null
+++ b/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/1408_add_organization_uuid_to_user_roles.rb
@@ -0,0 +1,29 @@
+#
+# 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 6.2
+#
+class AddOrganizationUuidToUserRoles < ActiveRecord::Migration
+
+ def self.up
+ execute_java_migration('org.sonar.db.version.v62.AddOrganizationUuidToUserRoles')
+ end
+end
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/1409_populate_organization_uuid_of_user_roles.rb b/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/1409_populate_organization_uuid_of_user_roles.rb
new file mode 100644
index 00000000000..f26b71b0d0a
--- /dev/null
+++ b/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/1409_populate_organization_uuid_of_user_roles.rb
@@ -0,0 +1,29 @@
+#
+# 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 6.2
+#
+class PopulateOrganizationUuidOfUserRoles < ActiveRecord::Migration
+
+ def self.up
+ execute_java_migration('org.sonar.db.version.v62.PopulateOrganizationUuidOfUserRoles')
+ end
+end
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/1410_make_organization_uuid_not_null_on_user_roles.rb b/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/1410_make_organization_uuid_not_null_on_user_roles.rb
new file mode 100644
index 00000000000..ecf2e345f7d
--- /dev/null
+++ b/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/1410_make_organization_uuid_not_null_on_user_roles.rb
@@ -0,0 +1,29 @@
+#
+# 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 6.2
+#
+class MakeOrganizationUuidNotNullOnUserRoles < ActiveRecord::Migration
+
+ def self.up
+ execute_java_migration('org.sonar.db.version.v62.MakeOrganizationUuidNotNullOnUserRoles')
+ end
+end