aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2023-08-08 10:02:23 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2023-08-10 10:57:37 +0200
commita0808111b44bcff5b7bc797250db5b10cd7947ea (patch)
tree085095ee2843b634c5901cbe26b3db07ed38af3c /apps
parentb8a0954f553674379983506e050abe2418b04d7d (diff)
downloadnextcloud-server-a0808111b44bcff5b7bc797250db5b10cd7947ea.tar.gz
nextcloud-server-a0808111b44bcff5b7bc797250db5b10cd7947ea.zip
Add unique index for user_ldap group memberships
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/user_ldap/lib/Migration/Version1190Date20230706134108.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/user_ldap/lib/Migration/Version1190Date20230706134108.php b/apps/user_ldap/lib/Migration/Version1190Date20230706134108.php
index 51d4510f66c..3f554f56e64 100644
--- a/apps/user_ldap/lib/Migration/Version1190Date20230706134108.php
+++ b/apps/user_ldap/lib/Migration/Version1190Date20230706134108.php
@@ -63,6 +63,7 @@ class Version1190Date20230706134108 extends SimpleMigrationStep {
'default' => '',
]);
$table->setPrimaryKey(['id']);
+ $table->addUniqueIndex(['groupid', 'userid'], 'user_ldap_membership_unique');
return $schema;
} else {
return null;