From 9a86ee019c97e81e698e8387d7bc4ff106b8f05b Mon Sep 17 00:00:00 2001 From: Sébastien Lesaint Date: Thu, 3 Dec 2015 15:25:09 +0100 Subject: SONAR-6925 add missing index on ce_activity.is_last_key --- .../1003_add_index_on_ce_activity_is_last_key.rb | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 server/sonar-web/src/main/webapp/WEB-INF/db/migrate/1003_add_index_on_ce_activity_is_last_key.rb (limited to 'server/sonar-web/src/main') diff --git a/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/1003_add_index_on_ce_activity_is_last_key.rb b/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/1003_add_index_on_ce_activity_is_last_key.rb new file mode 100644 index 00000000000..74703118717 --- /dev/null +++ b/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/1003_add_index_on_ce_activity_is_last_key.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.3 +# +class AddIndexOnCeActivityIsLastKey < ActiveRecord::Migration + + def self.up + add_index :ce_activity, :is_last_key, :name => 'ce_activity_islastkey' + end + +end + + -- cgit v1.2.3