MediaWiki  master
MWMySQLPlatform.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Wikimedia\Rdbms;
4 
8 class MWMySQLPlatform extends MWMySQLPlatformCompat {
9 
13  public function getFloatDeclarationSQL( array $column ) {
14  $double = $column['doublePrecision'] ?? false;
15  $unsigned = $column['unsigned'] ?? false;
16 
17  $sql = $double ? 'DOUBLE PRECISION' : 'FLOAT';
18 
19  return $sql . ( $unsigned ? ' UNSIGNED' : '' );
20  }
21 }
Wikimedia\Rdbms\MWMySQLPlatform\getFloatDeclarationSQL
getFloatDeclarationSQL(array $column)
Definition: MWMySQLPlatform.php:13
Wikimedia\Rdbms
Definition: ChronologyProtector.php:24
Wikimedia\Rdbms\MWMySQLPlatform
Definition: MWMySQLPlatform.php:8