diff options
Diffstat (limited to 'apps/dav/lib/Migration/Version1011Date20190725113607.php')
-rw-r--r-- | apps/dav/lib/Migration/Version1011Date20190725113607.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/dav/lib/Migration/Version1011Date20190725113607.php b/apps/dav/lib/Migration/Version1011Date20190725113607.php index 4163d0d0ec6..5a25bf126dc 100644 --- a/apps/dav/lib/Migration/Version1011Date20190725113607.php +++ b/apps/dav/lib/Migration/Version1011Date20190725113607.php @@ -27,7 +27,7 @@ declare(strict_types=1); */ namespace OCA\DAV\Migration; -use Doctrine\DBAL\Types\Type; +use Doctrine\DBAL\Types\Types; use OCP\DB\ISchemaWrapper; use OCP\Migration\IOutput; use OCP\Migration\SimpleMigrationStep; @@ -53,22 +53,22 @@ class Version1011Date20190725113607 extends SimpleMigrationStep { if (!$schema->hasTable($this->getMetadataTableName($type))) { $table = $schema->createTable($this->getMetadataTableName($type)); - $table->addColumn('id', Type::BIGINT, [ + $table->addColumn('id', Types::BIGINT, [ 'autoincrement' => true, 'notnull' => true, 'length' => 11, 'unsigned' => true, ]); - $table->addColumn($type . '_id', Type::BIGINT, [ + $table->addColumn($type . '_id', Types::BIGINT, [ 'notnull' => true, 'length' => 11, 'unsigned' => true, ]); - $table->addColumn('key', Type::STRING, [ + $table->addColumn('key', Types::STRING, [ 'notnull' => true, 'length' => 255, ]); - $table->addColumn('value', Type::STRING, [ + $table->addColumn('value', Types::STRING, [ 'notnull' => false, 'length' => 4000, ]); |