diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-06-22 15:43:21 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-06-22 16:56:11 +0200 |
commit | 57ad62d14359412694fd43b74a363085a79fd68a (patch) | |
tree | 2a1685157018a171b2c1cad2b4b590d5c3fca16a /server/sonar-web/src/main/webapp | |
parent | 06919fe62a5f9b7a0e7a0ed77b52b80b8f87394f (diff) | |
download | sonarqube-57ad62d14359412694fd43b74a363085a79fd68a.tar.gz sonarqube-57ad62d14359412694fd43b74a363085a79fd68a.zip |
SONAR-7688 add index to PROJECT_MEASURES.COMPONENT_UUID
Diffstat (limited to 'server/sonar-web/src/main/webapp')
-rw-r--r-- | server/sonar-web/src/main/webapp/WEB-INF/db/migrate/1245_add_index_on_component_uuid_of_measures.rb | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/1245_add_index_on_component_uuid_of_measures.rb b/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/1245_add_index_on_component_uuid_of_measures.rb new file mode 100644 index 00000000000..2dabb9af413 --- /dev/null +++ b/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/1245_add_index_on_component_uuid_of_measures.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.0 +# +class AddIndexOnComponentUuidOfMeasures < ActiveRecord::Migration + + def self.up + add_index :project_measures, :component_uuid, :name => 'measures_component_uuid' + end +end |