]> source.dussan.org Git - nextcloud-server.git/commitdiff
Drop attributes on oc_share table
authorJulius Härtl <jus@bitgrid.net>
Fri, 20 Nov 2020 15:29:02 +0000 (16:29 +0100)
committerJulius Härtl <jus@bitgrid.net>
Mon, 14 Dec 2020 10:12:51 +0000 (11:12 +0100)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
core/Migrations/Version21000Date20201120141228.php

index d3b97c1fd722e449f3a0bf6be376eec11b54cc49..bbf77093fb86b2e8bd1eba9a5eb1e475f3e06316 100644 (file)
@@ -25,6 +25,13 @@ class Version21000Date20201120141228 extends SimpleMigrationStep {
                        }
                }
 
+               if ($schema->hasTable('share')) {
+                       $table = $schema->getTable('share');
+                       if ($table->hasColumn('attributes')) {
+                               $table->dropColumn('attributes');
+                       }
+               }
+
                return $schema;
        }
 }