Skip to content

Commit

Permalink
Add missing primary key for ldap_group_membership
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 Jul 20, 2023
1 parent a87a43e commit 84334fe
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt

if (!$schema->hasTable('ldap_group_membership')) {
$table = $schema->createTable('ldap_group_membership');
$table->addColumn('id', 'integer', [
'autoincrement' => true,
'notnull' => true,
'length' => 4,
]);
$table->addColumn('groupid', Types::STRING, [
'notnull' => true,
'length' => 255,
Expand All @@ -61,6 +66,7 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
'length' => 64,
'default' => '',
]);
$table->setPrimaryKey(['id']);
return $schema;
} else {
return null;
Expand Down

0 comments on commit 84334fe

Please sign in to comment.