]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add missing table columns
authorJulius Härtl <jus@bitgrid.net>
Fri, 25 Sep 2020 07:03:22 +0000 (09:03 +0200)
committerJulius Härtl <jus@bitgrid.net>
Mon, 14 Dec 2020 10:12:52 +0000 (11:12 +0100)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
core/Migrations/Version13000Date20170718121200.php

index 253c6654dd685c2b17000ee35c5ed225f20f6086..a2616c95752f0b0890eab236c4f9cca53ff00051 100644 (file)
@@ -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')) {