Pass type object instance instead of identifier

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
Daniel Kesselberg 2019-04-27 23:03:24 +02:00
parent 37b6405a8a
commit 541e7c19f6
No known key found for this signature in database
GPG key ID: 36E3664E099D0614

View file

@ -57,6 +57,7 @@ class Version16000Date20190427105638 extends SimpleMigrationStep {
* @param array $options * @param array $options
* @return null|ISchemaWrapper * @return null|ISchemaWrapper
* @throws \Doctrine\DBAL\Schema\SchemaException * @throws \Doctrine\DBAL\Schema\SchemaException
* @throws \Doctrine\DBAL\DBALException
*/ */
public function changeSchema(IOutput $output, Closure $schemaClosure, array $options) { public function changeSchema(IOutput $output, Closure $schemaClosure, array $options) {
/** @var ISchemaWrapper $schema */ /** @var ISchemaWrapper $schema */
@ -66,7 +67,7 @@ class Version16000Date20190427105638 extends SimpleMigrationStep {
$table = $schema->getTable('collres_accesscache'); $table = $schema->getTable('collres_accesscache');
$table->changeColumn('access', [ $table->changeColumn('access', [
'type' => Type::BOOLEAN, 'type' => Type::getType(Type::BOOLEAN),
'notnull' => true, 'notnull' => true,
'default' => false, 'default' => false,
]); ]);