Add unique index for user_ldap group memberships

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
Côme Chilliet 2023-08-08 10:02:23 +02:00
parent b8a0954f55
commit a0808111b4
No known key found for this signature in database
GPG key ID: A3E2F658B28C760A

View file

@ -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;