src/Phinx/Db/Adapter/SqlServerAdapter.php 1 location
|
@@ 1023-1025 (lines=3) @@
|
| 1020 |
|
'int', |
| 1021 |
|
'tinyint' |
| 1022 |
|
]; |
| 1023 |
|
if (!in_array($sqlType['name'], $noLimits) && ($column->getLimit() || isset($sqlType['limit']))) { |
| 1024 |
|
$buffer[] = sprintf('(%s)', $column->getLimit() ?: $sqlType['limit']); |
| 1025 |
|
} |
| 1026 |
|
if ($column->getPrecision() && $column->getScale()) { |
| 1027 |
|
$buffer[] = '(' . $column->getPrecision() . ',' . $column->getScale() . ')'; |
| 1028 |
|
} |
src/Phinx/Db/Adapter/OracleAdapter.php 1 location
|
@@ 896-898 (lines=3) @@
|
| 893 |
|
static::PHINX_TYPE_UUID, |
| 894 |
|
static::PHINX_TYPE_BOOLEAN |
| 895 |
|
]; |
| 896 |
|
if (!in_array($column->getType(), $noLimits) && ($column->getLimit() || isset($sqlType['limit']))) { |
| 897 |
|
$buffer[] = sprintf('(%s)', $column->getLimit() ?: $sqlType['limit']); |
| 898 |
|
} |
| 899 |
|
if ($column->getPrecision() && $column->getScale()) { |
| 900 |
|
$buffer[] = '(' . $column->getPrecision() . ',' . $column->getScale() . ')'; |
| 901 |
|
} |