We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53941e4 commit fa4bb41Copy full SHA for fa4bb41
src/Phinx/Db/Adapter/MysqlAdapter.php
@@ -1364,8 +1364,8 @@ protected function getColumnSqlDefinition(Column $column): string
1364
}
1365
if ($column->getPrecision() && $column->getScale() !== null) {
1366
$def .= '(' . $column->getPrecision() . ',' . $column->getScale() . ')';
1367
- } elseif ($column->getLimit() || (!$column->hasLimitSet() && isset($sqlType['limit']))) {
1368
- $def .= '(' . ($column->getLimit() ?: $sqlType['limit']) . ')';
+ } elseif (($column->getLimit() !== null || !$column->hasLimitSet()) && isset($sqlType['limit'])) {
+ $def .= '(' . $sqlType['limit'] . ')';
1369
1370
1371
$values = $column->getValues();
0 commit comments