Skip to content

Commit a080811

Browse files
committed
Add unique index for user_ldap group memberships
Signed-off-by: Côme Chilliet <[email protected]>
1 parent b8a0954 commit a080811

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apps/user_ldap/lib/Migration/Version1190Date20230706134108.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
6363
'default' => '',
6464
]);
6565
$table->setPrimaryKey(['id']);
66+
$table->addUniqueIndex(['groupid', 'userid'], 'user_ldap_membership_unique');
6667
return $schema;
6768
} else {
6869
return null;

0 commit comments

Comments
 (0)