| @@ 984-986 (lines=3) @@ | ||
| 981 | $sqlType = $this->getSqlType($column->getType()); | |
| 982 | $def = ''; | |
| 983 | $def .= strtoupper($sqlType['name']); | |
| 984 |             if ($column->getPrecision() && $column->getScale()) { | |
| 985 |                 $def .= '(' . $column->getPrecision() . ',' . $column->getScale() . ')'; | |
| 986 | } | |
| 987 | $limitable = in_array(strtoupper($sqlType['name']), $this->definitionsWithLimits); | |
| 988 |             if (($column->getLimit() || isset($sqlType['limit'])) && $limitable) { | |
| 989 |                 $def .= '(' . ($column->getLimit() ? $column->getLimit() : $sqlType['limit']) . ')'; | |
| @@ 1032-1034 (lines=3) @@ | ||
| 1029 |             if (!in_array($sqlType['name'], $noLimits) && ($column->getLimit() || isset($sqlType['limit']))) { | |
| 1030 |                 $buffer[] = sprintf('(%s)', $column->getLimit() ? $column->getLimit() : $sqlType['limit']); | |
| 1031 | } | |
| 1032 |             if ($column->getPrecision() && $column->getScale()) { | |
| 1033 |                 $buffer[] = '(' . $column->getPrecision() . ',' . $column->getScale() . ')'; | |
| 1034 | } | |
| 1035 | ||
| 1036 | $buffer[] = $column->isNull() ? 'NULL' : 'NOT NULL'; | |
| 1037 | ||