diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2021-01-03 17:28:31 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2021-01-08 13:45:19 +0300 |
commit | 8b64e92b9262d2a2eec6345685ce421050f95c66 (patch) | |
tree | dd51490b8a184b2643414d11867a9fa450aa5065 /core/Migrations | |
parent | 84e6e9f7cf19207041925eaa237d24e1c12c2c2d (diff) |
Bump doctrine/dbal from 2.12.0 to 3.0.0
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core/Migrations')
-rw-r--r-- | core/Migrations/Version16000Date20190427105638.php | 1 | ||||
-rw-r--r-- | core/Migrations/Version20000Date20201109081918.php | 10 |
2 files changed, 5 insertions, 6 deletions
diff --git a/core/Migrations/Version16000Date20190427105638.php b/core/Migrations/Version16000Date20190427105638.php index cf48108d9e9..a2a58c74495 100644 --- a/core/Migrations/Version16000Date20190427105638.php +++ b/core/Migrations/Version16000Date20190427105638.php @@ -60,7 +60,6 @@ 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 */ diff --git a/core/Migrations/Version20000Date20201109081918.php b/core/Migrations/Version20000Date20201109081918.php index 71c433a2138..c5a19d0cbfb 100644 --- a/core/Migrations/Version20000Date20201109081918.php +++ b/core/Migrations/Version20000Date20201109081918.php @@ -28,7 +28,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\IOutput; @@ -55,20 +55,20 @@ class Version20000Date20201109081918 extends SimpleMigrationStep { if (!$schema->hasTable('storages_credentials')) { $table = $schema->createTable('storages_credentials'); - $table->addColumn('id', Type::BIGINT, [ + $table->addColumn('id', Types::BIGINT, [ 'autoincrement' => true, 'notnull' => true, 'length' => 64, ]); - $table->addColumn('user', Type::STRING, [ + $table->addColumn('user', Types::STRING, [ 'notnull' => false, 'length' => 64, ]); - $table->addColumn('identifier', Type::STRING, [ + $table->addColumn('identifier', Types::STRING, [ 'notnull' => true, 'length' => 64, ]); - $table->addColumn('credentials', Type::TEXT, [ + $table->addColumn('credentials', Types::TEXT, [ 'notnull' => false, ]); $table->setPrimaryKey(['id']); |