diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2022-06-07 16:22:01 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2022-06-07 16:22:01 +0300 |
commit | 0d1d24a1e29725ddf206b3734ad1aa1558c83006 (patch) | |
tree | 63095d6ba5506783687145ef7805337b5a6228d3 /lib | |
parent | b8870df89a8648b500108e31c83460384deb830d (diff) |
Fix database platform check with Nextcloud <22
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Migration/Version1130Date20220412111833.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Migration/Version1130Date20220412111833.php b/lib/Migration/Version1130Date20220412111833.php index eeb72e673..43c51deb3 100644 --- a/lib/Migration/Version1130Date20220412111833.php +++ b/lib/Migration/Version1130Date20220412111833.php @@ -170,7 +170,7 @@ class Version1130Date20220412111833 extends SimpleMigrationStep { $messagesTable->addIndex(['mailbox_id'], 'mail_messages_mailbox_id'); // Postgres doesn't allow for shortened indices, so let's skip the last index. - if ($schema->getDatabasePlatform() instanceof PostgreSQL94Platform) { + if ($this->connection->getDatabasePlatform() instanceof PostgreSQL94Platform) { return $schema; } |