aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-testing-harness/src
diff options
context:
space:
mode:
authorEvgeny Mandrikov <mandrikov@gmail.com>2011-05-24 00:15:48 +0400
committerEvgeny Mandrikov <mandrikov@gmail.com>2011-05-24 02:05:25 +0400
commitd1db9357b84d57dfa61d3c40a48915d24c50ee12 (patch)
treed752722582946328a780126764a367d8ed818411 /sonar-testing-harness/src
parent676770e8e1bf0a9ae13ec57373a6cca887f4e45c (diff)
downloadsonarqube-d1db9357b84d57dfa61d3c40a48915d24c50ee12.tar.gz
sonarqube-d1db9357b84d57dfa61d3c40a48915d24c50ee12.zip
SONAR-2425 Add index on CHARACTERISTIC_PROPERTIES.CHARACTERISTIC_ID
Diffstat (limited to 'sonar-testing-harness/src')
-rw-r--r--sonar-testing-harness/src/main/resources/org/sonar/test/persistence/sonar-test.ddl43
1 files changed, 22 insertions, 21 deletions
diff --git a/sonar-testing-harness/src/main/resources/org/sonar/test/persistence/sonar-test.ddl b/sonar-testing-harness/src/main/resources/org/sonar/test/persistence/sonar-test.ddl
index 54f49a0953b..343aa3f9335 100644
--- a/sonar-testing-harness/src/main/resources/org/sonar/test/persistence/sonar-test.ddl
+++ b/sonar-testing-harness/src/main/resources/org/sonar/test/persistence/sonar-test.ddl
@@ -83,6 +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 table CRITERIA (
ID INTEGER not null,
@@ -482,28 +483,28 @@ create table WIDGET_PROPERTIES (
CREATE INDEX WIDGET_PROPERTIES_WIDGETS ON WIDGET_PROPERTIES (WIDGET_ID);
CREATE TABLE REVIEWS (
- ID INTEGER NOT NULL,
- CREATED_AT TIMESTAMP,
- UPDATED_AT TIMESTAMP,
- USER_ID INTEGER,
- ASSIGNEE_ID INTEGER,
- TITLE VARCHAR(500),
- REVIEW_TYPE VARCHAR(10),
- STATUS VARCHAR(10),
- SEVERITY VARCHAR(10),
- RULE_FAILURE_PERMANENT_ID INTEGER,
- PROJECT_ID INTEGER,
- RESOURCE_ID INTEGER,
- RESOURCE_LINE INTEGER,
- primary key (id)
+ ID INTEGER NOT NULL,
+ CREATED_AT TIMESTAMP,
+ UPDATED_AT TIMESTAMP,
+ USER_ID INTEGER,
+ ASSIGNEE_ID INTEGER,
+ TITLE VARCHAR(500),
+ REVIEW_TYPE VARCHAR(10),
+ STATUS VARCHAR(10),
+ SEVERITY VARCHAR(10),
+ RULE_FAILURE_PERMANENT_ID INTEGER,
+ PROJECT_ID INTEGER,
+ RESOURCE_ID INTEGER,
+ RESOURCE_LINE INTEGER,
+ primary key (id)
);
CREATE TABLE REVIEW_COMMENTS (
- ID INTEGER NOT NULL,
- CREATED_AT TIMESTAMP,
- UPDATED_AT TIMESTAMP,
- REVIEW_ID INTEGER,
- USER_ID INTEGER,
- REVIEW_TEXT CLOB(2147483647),
- primary key (id)
+ ID INTEGER NOT NULL,
+ CREATED_AT TIMESTAMP,
+ UPDATED_AT TIMESTAMP,
+ REVIEW_ID INTEGER,
+ USER_ID INTEGER,
+ REVIEW_TEXT CLOB(2147483647),
+ primary key (id)
);