Add missing primary key for ldap_group_membership

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
Côme Chilliet 2023-07-20 17:45:57 +02:00
parent f9ed48eab9
commit ec13f22ae3
No known key found for this signature in database
GPG key ID: A3E2F658B28C760A

View file

@ -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;