Merge dropColumn and addColumn into changeColumn
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
parent
658edacf23
commit
37b6405a8a
|
@ -65,9 +65,8 @@ class Version16000Date20190427105638 extends SimpleMigrationStep {
|
||||||
if ($schema->hasTable('collres_accesscache')) {
|
if ($schema->hasTable('collres_accesscache')) {
|
||||||
$table = $schema->getTable('collres_accesscache');
|
$table = $schema->getTable('collres_accesscache');
|
||||||
|
|
||||||
$table->dropColumn('access');
|
$table->changeColumn('access', [
|
||||||
|
'type' => Type::BOOLEAN,
|
||||||
$table->addColumn('access', Type::BOOLEAN, [
|
|
||||||
'notnull' => true,
|
'notnull' => true,
|
||||||
'default' => false,
|
'default' => false,
|
||||||
]);
|
]);
|
||||||
|
|
Loading…
Reference in New Issue