wiki.techinc.nl/includes/libs/rdbms/dbal/MWMySQLPlatform.php
Daimona Eaytoy 947ff7c0f5 build: Update mediawiki/mediawiki-phan-config to 0.12.0
This patch only adds and removes suppressions, which must be done in the
same patch as the version bump.

Bug: T298571
Change-Id: I4044d4d9ce82b3dae7ba0af85bf04f22cb1dd347
2022-10-08 15:45:42 +02:00

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' : '' );
}
}