]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4950 Add missing unique index in the H3 schema
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Fri, 7 Nov 2014 11:48:55 +0000 (12:48 +0100)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Fri, 7 Nov 2014 11:48:55 +0000 (12:48 +0100)
sonar-core/src/main/resources/org/sonar/core/persistence/schema-h2.ddl

index 608e80bc6dbc1c0fbc57e654c28935df9e5ea5ca..1b23e14f193d0d9f6f60a87efaad5c091e54d73c 100644 (file)
@@ -671,6 +671,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");