diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2016-01-19 19:04:58 +0100 |
---|---|---|
committer | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2016-01-20 14:46:14 +0100 |
commit | bbda3cfd4c3463509430a0d9cf4e283167c9769a (patch) | |
tree | 115823d689aa1e4962b45bfc4089dcf6472b40ce /server/sonar-web/src/main/webapp | |
parent | 59c1b3d49a6f4c43ebfadd1310e7bea52c911a99 (diff) | |
download | sonarqube-bbda3cfd4c3463509430a0d9cf4e283167c9769a.tar.gz sonarqube-bbda3cfd4c3463509430a0d9cf4e283167c9769a.zip |
add index on project_measures.person_id
Diffstat (limited to 'server/sonar-web/src/main/webapp')
-rw-r--r-- | server/sonar-web/src/main/webapp/WEB-INF/db/migrate/1010_add_index_measures_person_id.rb | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/1010_add_index_measures_person_id.rb b/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/1010_add_index_measures_person_id.rb new file mode 100644 index 00000000000..091d678afbb --- /dev/null +++ b/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/1010_add_index_measures_person_id.rb @@ -0,0 +1,30 @@ +# +# 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.4 +# +class AddIndexMeasuresPersonId < ActiveRecord::Migration + + def self.up + add_index :project_measures, :person_id, :name => 'measures_person' + end + +end |