Skip to content

Commit

Permalink
Add unique index for user_ldap group memberships
Browse files Browse the repository at this point in the history
Signed-off-by: Côme Chilliet <[email protected]>
  • Loading branch information
come-nc committed Aug 10, 2023
1 parent b8a0954 commit a080811
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
'default' => '',
]);
$table->setPrimaryKey(['id']);
$table->addUniqueIndex(['groupid', 'userid'], 'user_ldap_membership_unique');
return $schema;
} else {
return null;
Expand Down

0 comments on commit a080811

Please sign in to comment.