diff --git a/lib/Db/DbFileMapper.php b/lib/Db/DbFileMapper.php index 7f592582..edac9a61 100644 --- a/lib/Db/DbFileMapper.php +++ b/lib/Db/DbFileMapper.php @@ -96,7 +96,10 @@ public function getFileIdsWithTags(array $includedTagIds, int $limit, int $offse */ private function getStringTypeDeclarationSQL(): string { $platform = $this->db->getDatabaseProvider(); - if ($platform === 'mysql' || $platform === 'sqlite' || $platform === 'postgres') { + if ($platform === "mysql") { + $stringType = 'CHAR(64)'; + } + else if ($platform === 'sqlite' || $platform === 'postgres') { $stringType = 'VARCHAR(64)'; } else { throw new Exception('Unsupported database platform: ' . $platform);