]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-2425 Add index on CHARACTERISTIC_PROPERTIES.CHARACTERISTIC_ID
authorEvgeny Mandrikov <mandrikov@gmail.com>
Tue, 24 May 2011 15:19:21 +0000 (19:19 +0400)
committerEvgeny Mandrikov <mandrikov@gmail.com>
Tue, 24 May 2011 15:27:16 +0000 (19:27 +0400)
Index name limited to 30 characters in Oracle DB.

sonar-server/src/main/webapp/WEB-INF/db/migrate/200_add_index_to_characteristic_property.rb
sonar-testing-harness/src/main/resources/org/sonar/test/persistence/sonar-test.ddl

index 87e31a1ae7664345db7c2fc576c986d8443d7314..6d345d34c31d2ae46d03a8de2345df30ec0230de 100644 (file)
@@ -24,7 +24,7 @@
 class AddIndexToCharacteristicProperty < ActiveRecord::Migration
 
   def self.up
-    add_index :characteristic_properties, :characteristic_id, :name => 'characteristic_properties_characteristic_id'
+    add_index :characteristic_properties, :characteristic_id, :name => 'characteristic_properties_cid'
   end
 
 end
index 343aa3f93358567f1daa211c77dcf67ab8776e0d..d7e6a8484813d96652597f6f742a338df1633b8f 100644 (file)
@@ -83,7 +83,7 @@ create table CHARACTERISTIC_PROPERTIES (
   TEXT_VALUE VARCHAR(4000),
   primary key (id)
 );
-CREATE INDEX CHARACTERISTIC_PROPERTIES_CHARACTERISTIC_ID ON CHARACTERISTIC_PROPERTIES (CHARACTERISTIC_ID);
+CREATE INDEX CHARACTERISTIC_PROPERTIES_CID ON CHARACTERISTIC_PROPERTIES (CHARACTERISTIC_ID);
 
 create table CRITERIA (
   ID INTEGER not null,