5 use Wikimedia\Timestamp\ConvertibleTimestamp;
20 $type = $column[
'type'];
21 $default = $column[
'default'] ??
null;
24 $timestamp =
new ConvertibleTimestamp( $default );
25 $pgTimestamp = $timestamp->getTimestamp( TS_POSTGRES );
27 return " DEFAULT '$pgTimestamp' ";
30 return parent::getDefaultValueDeclarationSQL( $column );
40 $tableSql = parent::_getCreateTableSQL( $name, $columns, $options );
41 foreach ( $columns as $column ) {
42 if ( $column[
'type'] instanceof
EnumType && $column[
'fixed'] ) {
47 $typeSql = $column[
'type']->makeEnumTypeSql( $column, $this );
48 array_unshift( $tableSql, $typeSql );