Merge dropColumn and addColumn into changeColumn
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
parent
658edacf23
commit
37b6405a8a
1 changed files with 2 additions and 3 deletions
|
@ -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,
|
||||
]);
|
||||
|
|
Loading…
Reference in a new issue