| @@ 960-962 (lines=3) @@ | ||
| 957 | $sqlType = $this->getSqlType($column->getType()); |
|
| 958 | $def = strtoupper($sqlType['name']); |
|
| 959 | } |
|
| 960 | if ($column->getPrecision() && $column->getScale()) { |
|
| 961 | $def .= '(' . $column->getPrecision() . ',' . $column->getScale() . ')'; |
|
| 962 | } |
|
| 963 | $limitable = in_array(strtoupper($sqlType['name']), $this->definitionsWithLimits); |
|
| 964 | if (($column->getLimit() || isset($sqlType['limit'])) && $limitable) { |
|
| 965 | $def .= '(' . ($column->getLimit() ?: $sqlType['limit']) . ')'; |
|
| @@ 1015-1017 (lines=3) @@ | ||
| 1012 | $buffer[] = sprintf('(%s)', $column->getLimit() ? $column->getLimit() : $sqlType['limit']); |
|
| 1013 | } |
|
| 1014 | } |
|
| 1015 | if ($column->getPrecision() && $column->getScale()) { |
|
| 1016 | $buffer[] = '(' . $column->getPrecision() . ',' . $column->getScale() . ')'; |
|
| 1017 | } |
|
| 1018 | $properties = $column->getProperties(); |
|
| 1019 | $buffer[] = $column->getType() === 'filestream' ? 'FILESTREAM' : ''; |
|
| 1020 | $buffer[] = isset($properties['rowguidcol']) ? 'ROWGUIDCOL' : ''; |
|