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/Version13000Date20170718121200.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/Version13000Date20170718121200.php')
-rw-r--r-- | core/Migrations/Version13000Date20170718121200.php | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/core/Migrations/Version13000Date20170718121200.php b/core/Migrations/Version13000Date20170718121200.php index 7e48059f798..e150a747d05 100644 --- a/core/Migrations/Version13000Date20170718121200.php +++ b/core/Migrations/Version13000Date20170718121200.php @@ -28,7 +28,7 @@ namespace OC\Core\Migrations; -use Doctrine\DBAL\Types\Type; +use Doctrine\DBAL\Types\Types; use OCP\DB\ISchemaWrapper; use OCP\Migration\IOutput; use OCP\Migration\SimpleMigrationStep; @@ -72,7 +72,7 @@ class Version13000Date20170718121200 extends SimpleMigrationStep { 'notnull' => false, 'length' => 64, ]); - $table->addColumn('numeric_id', Type::BIGINT, [ + $table->addColumn('numeric_id', Types::BIGINT, [ 'autoincrement' => true, 'notnull' => true, 'length' => 20, @@ -95,11 +95,11 @@ class Version13000Date20170718121200 extends SimpleMigrationStep { 'notnull' => true, 'length' => 4, ]); - $table->addColumn('storage_id', Type::BIGINT, [ + $table->addColumn('storage_id', Types::BIGINT, [ 'notnull' => true, 'length' => 20, ]); - $table->addColumn('root_id', Type::BIGINT, [ + $table->addColumn('root_id', Types::BIGINT, [ 'notnull' => true, 'length' => 20, ]); @@ -111,7 +111,7 @@ class Version13000Date20170718121200 extends SimpleMigrationStep { 'notnull' => true, 'length' => 4000, ]); - $table->addColumn('mount_id', Type::BIGINT, [ + $table->addColumn('mount_id', Types::BIGINT, [ 'notnull' => false, 'length' => 20, ]); @@ -125,7 +125,7 @@ class Version13000Date20170718121200 extends SimpleMigrationStep { if (!$schema->hasTable('mimetypes')) { $table = $schema->createTable('mimetypes'); - $table->addColumn('id', Type::BIGINT, [ + $table->addColumn('id', Types::BIGINT, [ 'autoincrement' => true, 'notnull' => true, 'length' => 20, @@ -141,12 +141,12 @@ class Version13000Date20170718121200 extends SimpleMigrationStep { if (!$schema->hasTable('filecache')) { $table = $schema->createTable('filecache'); - $table->addColumn('fileid', Type::BIGINT, [ + $table->addColumn('fileid', Types::BIGINT, [ 'autoincrement' => true, 'notnull' => true, 'length' => 20, ]); - $table->addColumn('storage', Type::BIGINT, [ + $table->addColumn('storage', Types::BIGINT, [ 'notnull' => true, 'length' => 20, 'default' => 0, @@ -160,7 +160,7 @@ class Version13000Date20170718121200 extends SimpleMigrationStep { 'length' => 32, 'default' => '', ]); - $table->addColumn('parent', Type::BIGINT, [ + $table->addColumn('parent', Types::BIGINT, [ 'notnull' => true, 'length' => 20, 'default' => 0, @@ -169,12 +169,12 @@ class Version13000Date20170718121200 extends SimpleMigrationStep { 'notnull' => false, 'length' => 250, ]); - $table->addColumn('mimetype', Type::BIGINT, [ + $table->addColumn('mimetype', Types::BIGINT, [ 'notnull' => true, 'length' => 20, 'default' => 0, ]); - $table->addColumn('mimepart', Type::BIGINT, [ + $table->addColumn('mimepart', Types::BIGINT, [ 'notnull' => true, 'length' => 20, 'default' => 0, @@ -184,12 +184,12 @@ class Version13000Date20170718121200 extends SimpleMigrationStep { 'length' => 8, 'default' => 0, ]); - $table->addColumn('mtime', Type::BIGINT, [ + $table->addColumn('mtime', Types::BIGINT, [ 'notnull' => true, 'length' => 20, 'default' => 0, ]); - $table->addColumn('storage_mtime', Type::BIGINT, [ + $table->addColumn('storage_mtime', Types::BIGINT, [ 'notnull' => true, 'length' => 20, 'default' => 0, |