diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2017-07-28 10:27:21 +0200 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2017-08-07 11:44:06 +0200 |
commit | d43366ba83a9112bfe1b320640b9afc7d171d6c4 (patch) | |
tree | 0cf109a48d6d367314ba44389f7f773b6fb821a0 /server/sonar-db-core/src | |
parent | f48a201c2a691281e689b2a4aee9df976a5f3986 (diff) | |
download | sonarqube-d43366ba83a9112bfe1b320640b9afc7d171d6c4.tar.gz sonarqube-d43366ba83a9112bfe1b320640b9afc7d171d6c4.zip |
SONAR-9639 Support CE task characteristics
Diffstat (limited to 'server/sonar-db-core/src')
-rw-r--r-- | server/sonar-db-core/src/main/java/org/sonar/db/version/SqTables.java | 1 | ||||
-rw-r--r-- | server/sonar-db-core/src/main/resources/org/sonar/db/version/schema-h2.ddl | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/server/sonar-db-core/src/main/java/org/sonar/db/version/SqTables.java b/server/sonar-db-core/src/main/java/org/sonar/db/version/SqTables.java index bff4cb2eb80..873d38eb2d1 100644 --- a/server/sonar-db-core/src/main/java/org/sonar/db/version/SqTables.java +++ b/server/sonar-db-core/src/main/java/org/sonar/db/version/SqTables.java @@ -50,6 +50,7 @@ public final class SqTables { "active_rule_parameters", "ce_activity", "ce_queue", + "ce_task_characteristics", "ce_task_input", "ce_scanner_context", "default_qprofiles", diff --git a/server/sonar-db-core/src/main/resources/org/sonar/db/version/schema-h2.ddl b/server/sonar-db-core/src/main/resources/org/sonar/db/version/schema-h2.ddl index c8cbe0b5ea4..cd0260a6fc1 100644 --- a/server/sonar-db-core/src/main/resources/org/sonar/db/version/schema-h2.ddl +++ b/server/sonar-db-core/src/main/resources/org/sonar/db/version/schema-h2.ddl @@ -610,11 +610,20 @@ CREATE TABLE "CE_ACTIVITY" ( "ERROR_MESSAGE" VARCHAR(1000), "ERROR_STACKTRACE" CLOB(2147483647) ); + CREATE UNIQUE INDEX "CE_ACTIVITY_UUID" ON "CE_ACTIVITY" ("UUID"); CREATE INDEX "CE_ACTIVITY_COMPONENT_UUID" ON "CE_ACTIVITY" ("COMPONENT_UUID"); CREATE INDEX "CE_ACTIVITY_ISLASTKEY" ON "CE_ACTIVITY" ("IS_LAST_KEY"); CREATE INDEX "CE_ACTIVITY_ISLAST_STATUS" ON "CE_ACTIVITY" ("IS_LAST", "STATUS"); +CREATE TABLE "CE_TASK_CHARACTERISTICS" ( + "UUID" VARCHAR(40) NOT NULL PRIMARY KEY, + "TASK_UUID" VARCHAR(40) NOT NULL, + "KEE" VARCHAR(50) NOT NULL, + "TEXT_VALUE" VARCHAR(4000) +); +CREATE INDEX "CE_TASK_CHARACTERISTICS_TASK_UUID" ON "CE_TASK_CHARACTERISTICS" ("TASK_UUID"); + CREATE TABLE "CE_TASK_INPUT" ( "TASK_UUID" VARCHAR(40) NOT NULL PRIMARY KEY, |