mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-20 06:08:52 +01:00
Use non deprecated method to get database driver type.
This commit is contained in:
@@ -4,6 +4,7 @@ namespace App\Migration;
|
||||
|
||||
use Doctrine\DBAL\Connection;
|
||||
use Doctrine\DBAL\DBALException;
|
||||
use Doctrine\DBAL\Driver\AbstractMySQLDriver;
|
||||
use Doctrine\DBAL\Driver\AbstractSQLiteDriver;
|
||||
use Doctrine\DBAL\Exception;
|
||||
use Doctrine\DBAL\Platforms\AbstractMySQLPlatform;
|
||||
@@ -123,7 +124,7 @@ abstract class AbstractMultiPlatformMigration extends AbstractMigration
|
||||
*/
|
||||
public function getDatabaseType(): ?string
|
||||
{
|
||||
if ($this->connection->getDriver() instanceof AbstractMySQLPlatform) {
|
||||
if ($this->connection->getDriver() instanceof AbstractMySQLDriver) {
|
||||
return 'mysql';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user