aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/DB/OCPostgreSqlPlatformTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/DB/OCPostgreSqlPlatformTest.php')
-rw-r--r--tests/lib/DB/OCPostgreSqlPlatformTest.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/lib/DB/OCPostgreSqlPlatformTest.php b/tests/lib/DB/OCPostgreSqlPlatformTest.php
index 4f83e866a7c..af17b01fc13 100644
--- a/tests/lib/DB/OCPostgreSqlPlatformTest.php
+++ b/tests/lib/DB/OCPostgreSqlPlatformTest.php
@@ -1,4 +1,5 @@
<?php
+
/**
* SPDX-FileCopyrightText: 2017-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2017 ownCloud, Inc.
@@ -7,7 +8,7 @@
namespace Test\DB;
-use Doctrine\DBAL\Platforms\PostgreSQL100Platform;
+use Doctrine\DBAL\Platforms\PostgreSQLPlatform;
use Doctrine\DBAL\Schema\Comparator;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\DBAL\Types\Types;
@@ -23,8 +24,8 @@ use Doctrine\DBAL\Types\Types;
* @package Test\DB
*/
class OCPostgreSqlPlatformTest extends \Test\TestCase {
- public function testAlterBigint() {
- $platform = new PostgreSQL100Platform();
+ public function testAlterBigint(): void {
+ $platform = new PostgreSQLPlatform();
$sourceSchema = new Schema();
$targetSchema = new Schema();
@@ -48,7 +49,7 @@ class OCPostgreSqlPlatformTest extends \Test\TestCase {
}
protected function createTableAndColumn($schema, $type) {
- $table = $schema->createTable("poor_yorick");
+ $table = $schema->createTable('poor_yorick');
$table->addColumn('id', $type, [
'autoincrement' => true,
'unsigned' => true,