From 37b6405a8ae64f634fb2482574331cddec92bc4d Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Sat, 27 Apr 2019 22:55:18 +0200 Subject: Merge dropColumn and addColumn into changeColumn Signed-off-by: Daniel Kesselberg --- core/Migrations/Version16000Date20190427105638.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/Migrations/Version16000Date20190427105638.php b/core/Migrations/Version16000Date20190427105638.php index ca5bf3fbb91..6ba83a56d12 100644 --- a/core/Migrations/Version16000Date20190427105638.php +++ b/core/Migrations/Version16000Date20190427105638.php @@ -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, ]); -- cgit v1.2.3