This patch only adds and removes suppressions, which must be done in the same patch as the version bump. Bug: T298571 Change-Id: I4044d4d9ce82b3dae7ba0af85bf04f22cb1dd347
20 lines
410 B
PHP
20 lines
410 B
PHP
<?php
|
|
|
|
namespace Wikimedia\Rdbms;
|
|
|
|
use Doctrine\DBAL\Platforms\MySQLPlatform;
|
|
|
|
class MWMySQLPlatform extends MySQLPlatform {
|
|
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
public function getFloatDeclarationSQL( array $column ) {
|
|
$double = $column['doublePrecision'] ?? false;
|
|
$unsigned = $column['unsigned'] ?? false;
|
|
|
|
$sql = $double ? 'DOUBLE PRECISION' : 'FLOAT';
|
|
|
|
return $sql . ( $unsigned ? ' UNSIGNED' : '' );
|
|
}
|
|
}
|