summaryrefslogtreecommitdiffstats
path: root/sonar-server/src/main/webapp/WEB-INF
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2013-12-19 10:25:22 +0100
committerSimon Brandhof <simon.brandhof@gmail.com>2013-12-19 10:25:34 +0100
commita8bbab1909e278e6d0a6d1c69e42ca088a60244f (patch)
treedc5c50316a9b440db60204c2e458461c413df5a4 /sonar-server/src/main/webapp/WEB-INF
parent001e5dfa8cf023561cde1f92c995adb7e7b46c65 (diff)
downloadsonarqube-a8bbab1909e278e6d0a6d1c69e42ca088a60244f.tar.gz
sonarqube-a8bbab1909e278e6d0a6d1c69e42ca088a60244f.zip
SONAR-4950 add unique index on GROUP_ROLES
Diffstat (limited to 'sonar-server/src/main/webapp/WEB-INF')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/db/migrate/482_add_unique_constraint_to_group_roles.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/db/migrate/482_add_unique_constraint_to_group_roles.rb b/sonar-server/src/main/webapp/WEB-INF/db/migrate/482_add_unique_constraint_to_group_roles.rb
index 62752d2ad27..161b786996b 100644
--- a/sonar-server/src/main/webapp/WEB-INF/db/migrate/482_add_unique_constraint_to_group_roles.rb
+++ b/sonar-server/src/main/webapp/WEB-INF/db/migrate/482_add_unique_constraint_to_group_roles.rb
@@ -40,5 +40,7 @@ class AddUniqueConstraintToGroupRoles < ActiveRecord::Migration
end
end
end
+
+ add_index 'group_roles', ['group_id', 'resource_id', 'role'], :unique => true, :name => 'uniq_group_roles'
end
end