mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Add missing primary key for ldap_group_membership
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
f9ed48eab9
commit
ec13f22ae3
1 changed files with 6 additions and 0 deletions
|
|
@ -48,6 +48,11 @@ class Version1190Date20230706134108 extends SimpleMigrationStep {
|
|||
|
||||
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,
|
||||
|
|
@ -58,6 +63,7 @@ class Version1190Date20230706134108 extends SimpleMigrationStep {
|
|||
'length' => 64,
|
||||
'default' => '',
|
||||
]);
|
||||
$table->setPrimaryKey(['id']);
|
||||
return $schema;
|
||||
} else {
|
||||
return null;
|
||||
|
|
|
|||
Loading…
Reference in a new issue