]> source.dussan.org Git - nextcloud-server.git/commitdiff
Merge dropColumn and addColumn into changeColumn
authorDaniel Kesselberg <mail@danielkesselberg.de>
Sat, 27 Apr 2019 20:55:18 +0000 (22:55 +0200)
committerDaniel Kesselberg <mail@danielkesselberg.de>
Thu, 2 May 2019 19:10:47 +0000 (21:10 +0200)
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
core/Migrations/Version16000Date20190427105638.php

index ca5bf3fbb91c52a9b59c6f9da76af58e90215289..6ba83a56d123e37fe0f76888baacb9c1aa5bfce2 100644 (file)
@@ -65,9 +65,8 @@ class Version16000Date20190427105638 extends SimpleMigrationStep {
                if ($schema->hasTable('collres_accesscache')) {
                        $table = $schema->getTable('collres_accesscache');
 
-                       $table->dropColumn('access');
-
-                       $table->addColumn('access', Type::BOOLEAN, [
+                       $table->changeColumn('access', [
+                               'type' => Type::BOOLEAN,
                                'notnull' => true,
                                'default' => false,
                        ]);