feat(dump): parse dump filenames and detect MySQL variant

This commit is contained in:
2026-09-14 22:00:26 +02:00
parent b4e84d0570
commit 957588d0b1
2 changed files with 54 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
<?php declare(strict_types=1);
namespace AeonDumpManager\Service;
/**
* Pure version-string check, split out of DumpBinaryLocator so it's
* unit-testable without a live Shopware kernel/DB connection. Mirrors
* Doctrine DBAL's own AbstractMySQLDriver::createDatabasePlatformForVersion()
* check — the stable, version-portable way to tell MariaDB from MySQL.
*/
class MySqlVariant
{
public static function isMariaDb(string $serverVersion): bool
{
return stripos($serverVersion, 'mariadb') !== false;
}
}