mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-13 12:14:06 +02:00
[ticket/16741] Replace deprecated functions
PHPBB3-16741
This commit is contained in:
@@ -28,7 +28,7 @@ class case_insensitive_string extends Type
|
||||
*/
|
||||
public function getSQLDeclaration(array $column, AbstractPlatform $platform): string
|
||||
{
|
||||
if ($platform->getName() === 'postgresql')
|
||||
if ($platform instanceof postgresql_platform)
|
||||
{
|
||||
return 'varchar_ci';
|
||||
}
|
||||
@@ -37,7 +37,7 @@ class case_insensitive_string extends Type
|
||||
// we used 3 times larger capacity for strings on oracle for unicode strings
|
||||
// as on other platforms. This is not the case with varchar_ci, which uses
|
||||
// the same length as other platforms.
|
||||
if ($platform->getName() === 'oracle')
|
||||
if ($platform instanceof oracle_platform)
|
||||
{
|
||||
return $platform->getAsciiStringTypeDeclarationSQL($column);
|
||||
}
|
||||
|
Reference in New Issue
Block a user