diff options
Diffstat (limited to 'core/Migrations/Version16000Date20190428150708.php')
-rw-r--r-- | core/Migrations/Version16000Date20190428150708.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/core/Migrations/Version16000Date20190428150708.php b/core/Migrations/Version16000Date20190428150708.php index 4e61dfd6be9..14645925d3d 100644 --- a/core/Migrations/Version16000Date20190428150708.php +++ b/core/Migrations/Version16000Date20190428150708.php @@ -5,7 +5,9 @@ declare(strict_types=1); /** * @copyright Copyright (c) 2019 Daniel Kesselberg <mail@danielkesselberg.de> * + * @author Christoph Wurst <christoph@winzerhof-wurst.at> * @author Daniel Kesselberg <mail@danielkesselberg.de> + * @author Joas Schilling <coding@schilljs.com> * @author Roeland Jago Douma <roeland@famdouma.nl> * * @license GNU AGPL version 3 or any later version @@ -17,18 +19,17 @@ declare(strict_types=1); * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * */ - namespace OC\Core\Migrations; use Closure; -use Doctrine\DBAL\Types\Type; +use OCP\DB\Types; use OCP\DB\ISchemaWrapper; use OCP\Migration\IOutput; use OCP\Migration\SimpleMigrationStep; @@ -48,8 +49,8 @@ class Version16000Date20190428150708 extends SimpleMigrationStep { if ($schema->hasTable('collres_accesscache')) { $table = $schema->getTable('collres_accesscache'); - $table->addColumn('access', Type::BOOLEAN, [ - 'notnull' => true, + $table->addColumn('access', Types::BOOLEAN, [ + 'notnull' => false, 'default' => false ]); } |