diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2020-06-30 22:12:06 +0200 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2020-06-30 23:46:22 +0200 |
commit | 87dd760a89891d15f75175e5caa43a3983a28d38 (patch) | |
tree | b9365127a8f6856044739f32329d88e14684ee8a /core/Migrations/Version18000Date20191014105105.php | |
parent | 43216f0ac9e3841747019b8c2def0c58e71b8cca (diff) | |
download | nextcloud-server-87dd760a89891d15f75175e5caa43a3983a28d38.tar.gz nextcloud-server-87dd760a89891d15f75175e5caa43a3983a28d38.zip |
Replace TYPE with TYPES
As TYPE::* is deprecated.
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'core/Migrations/Version18000Date20191014105105.php')
-rw-r--r-- | core/Migrations/Version18000Date20191014105105.php | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/core/Migrations/Version18000Date20191014105105.php b/core/Migrations/Version18000Date20191014105105.php index 62a8e2cc37f..84c797cc57d 100644 --- a/core/Migrations/Version18000Date20191014105105.php +++ b/core/Migrations/Version18000Date20191014105105.php @@ -27,7 +27,7 @@ declare(strict_types=1); namespace OC\Core\Migrations; use Closure; -use Doctrine\DBAL\Types\Type; +use Doctrine\DBAL\Types\Types; use OCP\DB\ISchemaWrapper; use OCP\IDBConnection; use OCP\Migration\SimpleMigrationStep; @@ -53,34 +53,34 @@ class Version18000Date20191014105105 extends SimpleMigrationStep { $schema = $schemaClosure(); $table = $schema->createTable('direct_edit'); - $table->addColumn('id', Type::BIGINT, [ + $table->addColumn('id', Types::BIGINT, [ 'autoincrement' => true, 'notnull' => true, ]); - $table->addColumn('editor_id', Type::STRING, [ + $table->addColumn('editor_id', Types::STRING, [ 'notnull' => true, 'length' => 64, ]); - $table->addColumn('token', Type::STRING, [ + $table->addColumn('token', Types::STRING, [ 'notnull' => true, 'length' => 64, ]); - $table->addColumn('file_id', Type::BIGINT, [ + $table->addColumn('file_id', Types::BIGINT, [ 'notnull' => true, ]); - $table->addColumn('user_id', Type::STRING, [ + $table->addColumn('user_id', Types::STRING, [ 'notnull' => false, 'length' => 64, ]); - $table->addColumn('share_id', Type::BIGINT, [ + $table->addColumn('share_id', Types::BIGINT, [ 'notnull' => false ]); - $table->addColumn('timestamp', Type::BIGINT, [ + $table->addColumn('timestamp', Types::BIGINT, [ 'notnull' => true, 'length' => 20, 'unsigned' => true, ]); - $table->addColumn('accessed', Type::BOOLEAN, [ + $table->addColumn('accessed', Types::BOOLEAN, [ 'notnull' => true, 'default' => false ]); |