money() public method (available since version 2.0.6)
Creates a money column.
public yii\db\ColumnSchemaBuilder money ( $precision = null, $scale = null ) | ||
---|---|---|
$precision | integer |
Column value precision, which is usually the total number of digits. First parameter passed to the column type, e.g. DECIMAL(precision, scale). This parameter will be ignored if not supported by the DBMS. |
$scale | integer |
Column value scale, which is usually the number of digits after the decimal point. Second parameter passed to the column type, e.g. DECIMAL(precision, scale). 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.