From ec13f22ae317b65db4bf84726c90e3fc6b7a2a0c Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=B4me=20Chilliet?= Date: Thu, 20 Jul 2023 17:45:57 +0200 Subject: [PATCH] Add missing primary key for ldap_group_membership MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- .../lib/Migration/Version1190Date20230706134108.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/user_ldap/lib/Migration/Version1190Date20230706134108.php b/apps/user_ldap/lib/Migration/Version1190Date20230706134108.php index cf41ba1ec93..c6bd795f3e6 100644 --- a/apps/user_ldap/lib/Migration/Version1190Date20230706134108.php +++ b/apps/user_ldap/lib/Migration/Version1190Date20230706134108.php @@ -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; -- 2.39.5