src/Phinx/Db/Adapter/OracleAdapter.php 1 location
|
@@ 904-906 (lines=3) @@
|
| 901 |
|
static::PHINX_TYPE_UUID, |
| 902 |
|
static::PHINX_TYPE_BOOLEAN |
| 903 |
|
]; |
| 904 |
|
if (!in_array($column->getType(), $noLimits) && ($column->getLimit() || isset($sqlType['limit']))) { |
| 905 |
|
$buffer[] = sprintf('(%s)', $column->getLimit() ?: $sqlType['limit']); |
| 906 |
|
} |
| 907 |
|
if ($column->getPrecision() && $column->getScale()) { |
| 908 |
|
$buffer[] = '(' . $column->getPrecision() . ',' . $column->getScale() . ')'; |
| 909 |
|
} |
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 |
|
} |