From: Julius Härtl Date: Fri, 25 Sep 2020 07:03:22 +0000 (+0200) Subject: Add missing table columns X-Git-Tag: v20.0.4~1^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5dbc94bfad40a9789deb29e61f4c8ca1211d5aed;p=nextcloud-server.git Add missing table columns Signed-off-by: Julius Härtl --- diff --git a/core/Migrations/Version13000Date20170718121200.php b/core/Migrations/Version13000Date20170718121200.php index 253c6654dd6..a2616c95752 100644 --- a/core/Migrations/Version13000Date20170718121200.php +++ b/core/Migrations/Version13000Date20170718121200.php @@ -471,6 +471,14 @@ class Version13000Date20170718121200 extends SimpleMigrationStep { $table->addIndex(['parent'], 'parent_index'); $table->addIndex(['uid_owner'], 'owner_index'); $table->addIndex(['uid_initiator'], 'initiator_index'); + } else { + $table = $schema->getTable('share'); + if (!$table->hasColumn('password')) { + $table->addColumn('password', 'string', [ + 'notnull' => false, + 'length' => 255, + ]); + } } if (!$schema->hasTable('jobs')) {