dateTime() public method (available since version 2.0.6)
Creates a datetime column.
public yii\db\ColumnSchemaBuilder dateTime ( $precision = null ) | ||
---|---|---|
$precision | integer |
Column value precision. First parameter passed to the column type, e.g. DATETIME(precision). This parameter will be ignored if not supported by the DBMS. |
return | yii\db\ColumnSchemaBuilder |
The column instance which can be further customized. |
Please login to continue.