MediaWiki REL1_39
MWMySQLPlatform.php
Go to the documentation of this file.
1<?php
2
3namespace Wikimedia\Rdbms;
4
5use Doctrine\DBAL\Platforms\MySQLPlatform;
6
8
12 public function getFloatDeclarationSQL( array $column ) {
13 $double = $column['doublePrecision'] ?? false;
14 $unsigned = $column['unsigned'] ?? false;
15
16 $sql = $double ? 'DOUBLE PRECISION' : 'FLOAT';
17
18 return $sql . ( $unsigned ? ' UNSIGNED' : '' );
19 }
20}