protected function databaseSupportsUtf8Mb4(string $databaseVersion): bool
    {
        if (strpos($databaseVersion, '-MariaDB') !== false &&
            version_compare($databaseVersion, self::MINIMUM_MARIA_DB_VERSION) === -1
        ) {
            return false;
        }

        if (preg_match('([a-zA-Z])', $databaseVersion) === 0 &&
            version_compare($databaseVersion, self::MINIMUM_MYSQL_VERSION) === -1
        ) {
            return false;
        }

        return true;
    }