mirror of
https://github.com/nextcloud/server.git
synced 2026-03-04 22:41:13 -05:00
Add unique index for user_ldap group memberships
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
b8a0954f55
commit
a0808111b4
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Reference in a new issue