Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add missing primary key for ldap_group_membership
Signed-off-by: Côme Chilliet <[email protected]>
  • Loading branch information
come-nc committed Aug 10, 2023
commit ec13f22ae317b65db4bf84726c90e3fc6b7a2a0c
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,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 @@ -58,6 +63,7 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
'length' => 64,
'default' => '',
]);
$table->setPrimaryKey(['id']);
return $schema;
} else {
return null;
Expand Down