diff options
author | Joas Schilling <coding@schilljs.com> | 2024-07-01 16:59:47 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2024-07-19 11:21:14 +0200 |
commit | 829f2b9bc7290c0b1b1a9db373ee26199c9bcc4d (patch) | |
tree | 5641e35ffe42897566f58acb1d71a0d9afba4729 /core/Migrations/Version13000Date20170718121200.php | |
parent | bd383627a7ef3cb0a8e608b35de067d341f46da4 (diff) | |
download | nextcloud-server-829f2b9bc7290c0b1b1a9db373ee26199c9bcc4d.tar.gz nextcloud-server-829f2b9bc7290c0b1b1a9db373ee26199c9bcc4d.zip |
fix(db): Promote the use of `getDatabaseProvider` to reduce the impage of removed upstream platforms
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core/Migrations/Version13000Date20170718121200.php')
-rw-r--r-- | core/Migrations/Version13000Date20170718121200.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/Migrations/Version13000Date20170718121200.php b/core/Migrations/Version13000Date20170718121200.php index c485e025c37..3985bdaeb57 100644 --- a/core/Migrations/Version13000Date20170718121200.php +++ b/core/Migrations/Version13000Date20170718121200.php @@ -5,7 +5,6 @@ */ namespace OC\Core\Migrations; -use Doctrine\DBAL\Platforms\PostgreSQL94Platform; use OCP\DB\ISchemaWrapper; use OCP\DB\Types; use OCP\IDBConnection; @@ -238,7 +237,7 @@ class Version13000Date20170718121200 extends SimpleMigrationStep { $table->addIndex(['name'], 'fs_name_hash'); $table->addIndex(['mtime'], 'fs_mtime'); $table->addIndex(['size'], 'fs_size'); - if (!$schema->getDatabasePlatform() instanceof PostgreSQL94Platform) { + if ($this->connection->getDatabaseProvider() !== IDBConnection::PLATFORM_POSTGRES) { $table->addIndex(['storage', 'path'], 'fs_storage_path_prefix', [], ['lengths' => [null, 64]]); } } |