Merge dropColumn and addColumn into changeColumn

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
Daniel Kesselberg 2019-04-27 22:55:18 +02:00 committed by Backportbot
parent 5f93c754b4
commit 2ec80217df
1 changed files with 2 additions and 3 deletions

View 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,
]);