diff --git a/lib/Db/DbFileMapper.php b/lib/Db/DbFileMapper.php index 1e567946..edac9a61 100644 --- a/lib/Db/DbFileMapper.php +++ b/lib/Db/DbFileMapper.php @@ -95,8 +95,11 @@ public function getFileIdsWithTags(array $includedTagIds, int $limit, int $offse * @throws Exception if the database platform is not supported */ private function getStringTypeDeclarationSQL(): string { - $platform = $this->db->getDatabasePlatform()->getName(); - if ($platform === 'mysql' || $platform === 'sqlite' || $platform === 'postgres') { + $platform = $this->db->getDatabaseProvider(); + if ($platform === "mysql") { + $stringType = 'CHAR(64)'; + } + else if ($platform === 'sqlite' || $platform === 'postgres') { $stringType = 'VARCHAR(64)'; } else { throw new Exception('Unsupported database platform: ' . $platform);