Add unique index for user_ldap group memberships

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
pull/39446/head
Côme Chilliet 2 years ago
parent b8a0954f55
commit a0808111b4
No known key found for this signature in database
GPG Key ID: A3E2F658B28C760A
  1. 1
      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;

Loading…
Cancel
Save