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
parent 658edacf23
commit 37b6405a8a
No known key found for this signature in database
GPG key ID: 36E3664E099D0614

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