diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-05-17 15:12:54 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-05-18 11:06:45 +0200 |
commit | 0f906cccf16b98864d8f2dd1ae3966b60fb8ac4a (patch) | |
tree | 48d88e1caaace874df98e119d8ba96dcfc9eaa5b /server/sonar-web | |
parent | 4ad2b43c03818f617c1436098617ae4d1a13d832 (diff) | |
download | sonarqube-0f906cccf16b98864d8f2dd1ae3966b60fb8ac4a.tar.gz sonarqube-0f906cccf16b98864d8f2dd1ae3966b60fb8ac4a.zip |
SONAR-6613 remove useless indexes on table GROUP_ROLES
Diffstat (limited to 'server/sonar-web')
-rw-r--r-- | server/sonar-web/src/main/webapp/WEB-INF/db/migrate/1152_remove_useless_indexes_on_group_roles.rb | 32 |
1 files changed, 32 insertions, 0 deletions
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 |