diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-07-20 17:45:57 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-08-10 10:57:33 +0200 |
commit | ec13f22ae317b65db4bf84726c90e3fc6b7a2a0c (patch) | |
tree | 5db6565f2886d385ad9786327253d64cc9e5359d /apps | |
parent | f9ed48eab93884b3b76ecd254d7c79a716bbcf24 (diff) | |
download | nextcloud-server-ec13f22ae317b65db4bf84726c90e3fc6b7a2a0c.tar.gz nextcloud-server-ec13f22ae317b65db4bf84726c90e3fc6b7a2a0c.zip |
Add missing primary key for ldap_group_membership
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/user_ldap/lib/Migration/Version1190Date20230706134108.php | 6 |
1 files changed, 6 insertions, 0 deletions
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; |