aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2012-04-03 12:09:39 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2012-04-03 12:10:07 +0200
commitceab93145b3f90c1b1ccaeb2c624e6680bca91ce (patch)
tree29280de7d3d6cda4895f755f3ea646bfcc8598b1
parent45bc01601aae433703a475f0d6d6562cc544f23c (diff)
downloadsonarqube-ceab93145b3f90c1b1ccaeb2c624e6680bca91ce.tar.gz
sonarqube-ceab93145b3f90c1b1ccaeb2c624e6680bca91ce.zip
Add missing indices on RESOURCE_INDEX
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/db/migrate/285_add_resource_index_primary_key.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/db/migrate/285_add_resource_index_primary_key.rb b/sonar-server/src/main/webapp/WEB-INF/db/migrate/285_add_resource_index_primary_key.rb
index 01231a9d2bc..3b0180903c9 100644
--- a/sonar-server/src/main/webapp/WEB-INF/db/migrate/285_add_resource_index_primary_key.rb
+++ b/sonar-server/src/main/webapp/WEB-INF/db/migrate/285_add_resource_index_primary_key.rb
@@ -48,7 +48,8 @@ class AddResourceIndexPrimaryKey < ActiveRecord::Migration
t.column 'root_project_id', :integer, :null => false
t.column 'qualifier', :string, :limit => 10, :null => false
end
-
+ add_index 'resource_index', 'kee', :name => 'resource_index_key'
+ add_index 'resource_index', 'resource_id', :name => 'resource_index_rid'
end
end