connection ->getQueryBuilder() ->delete('collres_accesscache') ->execute(); } /** * @param IOutput $output * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` * @param array $options * @return null|ISchemaWrapper * @throws \Doctrine\DBAL\Schema\SchemaException */ public function changeSchema(IOutput $output, Closure $schemaClosure, array $options) { /** @var ISchemaWrapper $schema */ $schema = $schemaClosure(); if ($schema->hasTable('collres_accesscache')) { $table = $schema->getTable('collres_accesscache'); $table->dropColumn('access'); } return $schema; } }