mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-13 20:04:34 +02:00
Fixed the use of the removed ClassMetadataInfo constants
This commit is contained in:
parent
7d9be5ae76
commit
60325e797d
4 changed files with 11 additions and 11 deletions
|
@ -24,7 +24,7 @@ namespace App\Doctrine\Types;
|
|||
|
||||
use Doctrine\DBAL\Platforms\AbstractMySQLPlatform;
|
||||
use Doctrine\DBAL\Platforms\AbstractPlatform;
|
||||
use Doctrine\DBAL\Platforms\SqlitePlatform;
|
||||
use Doctrine\DBAL\Platforms\SQLitePlatform;
|
||||
use Doctrine\DBAL\Types\Type;
|
||||
|
||||
/**
|
||||
|
@ -36,7 +36,7 @@ class TinyIntType extends Type
|
|||
public function getSQLDeclaration(array $column, AbstractPlatform $platform): string
|
||||
{
|
||||
//MySQL and SQLite know the TINYINT type directly
|
||||
if ($platform instanceof AbstractMySQLPlatform || $platform instanceof SqlitePlatform) {
|
||||
if ($platform instanceof AbstractMySQLPlatform || $platform instanceof SQLitePlatform) {
|
||||
return 'TINYINT';
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue