aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-core/src
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2014-11-07 12:59:39 +0100
committerJulien Lancelot <julien.lancelot@sonarsource.com>2014-11-07 12:59:39 +0100
commit42814c36e2f4ef8ebeb5b37ca40129ece6158cb5 (patch)
tree797c1c580e111fcb385225491cf23e0777b5d46e /sonar-core/src
parent5bae92cf0f91e54068a09a1827021160826eabb8 (diff)
parentb84084cf0d8024d49a29b997bf0dc138bebcd3ec (diff)
downloadsonarqube-42814c36e2f4ef8ebeb5b37ca40129ece6158cb5.tar.gz
sonarqube-42814c36e2f4ef8ebeb5b37ca40129ece6158cb5.zip
Merge remote-tracking branch 'origin/branch-4.5'
Conflicts: sonar-core/src/main/java/org/sonar/core/persistence/DatabaseVersion.java sonar-core/src/main/resources/org/sonar/core/persistence/rows-h2.sql
Diffstat (limited to 'sonar-core/src')
-rw-r--r--sonar-core/src/main/resources/org/sonar/core/persistence/schema-h2.ddl2
1 files changed, 2 insertions, 0 deletions
diff --git a/sonar-core/src/main/resources/org/sonar/core/persistence/schema-h2.ddl b/sonar-core/src/main/resources/org/sonar/core/persistence/schema-h2.ddl
index f579edcf5c2..5842e9f4400 100644
--- a/sonar-core/src/main/resources/org/sonar/core/persistence/schema-h2.ddl
+++ b/sonar-core/src/main/resources/org/sonar/core/persistence/schema-h2.ddl
@@ -706,6 +706,8 @@ CREATE INDEX "SNAPSHOTS_ROOT_PROJECT_ID" ON "SNAPSHOTS" ("ROOT_PROJECT_ID");
CREATE INDEX "GROUP_ROLES_ROLE" ON "GROUP_ROLES" ("ROLE");
+CREATE UNIQUE INDEX "UNIQ_GROUP_ROLES" ON "GROUP_ROLES" ("GROUP_ID", "RESOURCE_ID", "ROLE");
+
CREATE UNIQUE INDEX "RULES_REPO_KEY" ON "RULES" ("PLUGIN_NAME", "PLUGIN_RULE_KEY");
CREATE INDEX "CHARACTERISTICS_ENABLED" ON "CHARACTERISTICS" ("ENABLED");