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 |
|
} |
src/Phinx/Db/Adapter/SqlServerAdapter.php 1 location
|
@@ 1043-1045 (lines=3) @@
|
| 1040 |
|
'int', |
| 1041 |
|
'tinyint' |
| 1042 |
|
]; |
| 1043 |
|
if (!in_array($sqlType['name'], $noLimits) && ($column->getLimit() || isset($sqlType['limit']))) { |
| 1044 |
|
$buffer[] = sprintf('(%s)', $column->getLimit() ? $column->getLimit() : $sqlType['limit']); |
| 1045 |
|
} |
| 1046 |
|
} |
| 1047 |
|
if ($column->getPrecision() && $column->getScale()) { |
| 1048 |
|
$buffer[] = '(' . $column->getPrecision() . ',' . $column->getScale() . ')'; |