From 0f906cccf16b98864d8f2dd1ae3966b60fb8ac4a Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Tue, 17 May 2016 15:12:54 +0200 Subject: SONAR-6613 remove useless indexes on table GROUP_ROLES --- .../1152_remove_useless_indexes_on_group_roles.rb | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 server/sonar-web/src/main/webapp/WEB-INF/db/migrate/1152_remove_useless_indexes_on_group_roles.rb (limited to 'server/sonar-web') diff --git a/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/1152_remove_useless_indexes_on_group_roles.rb b/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/1152_remove_useless_indexes_on_group_roles.rb new file mode 100644 index 00000000000..f7ca1abe4d6 --- /dev/null +++ b/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/1152_remove_useless_indexes_on_group_roles.rb @@ -0,0 +1,32 @@ +# +# 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.6 +# SONAR-6613 +# +class RemoveUselessIndexesOnGroupRoles < ActiveRecord::Migration + + def self.up + remove_index :group_roles, :name => 'group_roles_group' + remove_index :group_roles, :name => 'group_roles_role' + end + +end -- cgit v1.2.3