]> source.dussan.org Git - nextcloud-server.git/commitdiff
Pass type object instance instead of identifier
authorDaniel Kesselberg <mail@danielkesselberg.de>
Sat, 27 Apr 2019 21:03:24 +0000 (23:03 +0200)
committerDaniel Kesselberg <mail@danielkesselberg.de>
Thu, 2 May 2019 19:10:47 +0000 (21:10 +0200)
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
core/Migrations/Version16000Date20190427105638.php

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