| @@ 974-976 (lines=3) @@ | ||
| 971 | $sqlType = $this->getSqlType($column->getType()); |
|
| 972 | $def = ''; |
|
| 973 | $def .= strtoupper($sqlType['name']); |
|
| 974 | if ($column->getPrecision() && $column->getScale()) { |
|
| 975 | $def .= '(' . $column->getPrecision() . ',' . $column->getScale() . ')'; |
|
| 976 | } |
|
| 977 | $limitable = in_array(strtoupper($sqlType['name']), $this->definitionsWithLimits); |
|
| 978 | if (($column->getLimit() || isset($sqlType['limit'])) && $limitable) { |
|
| 979 | $def .= '(' . ($column->getLimit() ?: $sqlType['limit']) . ')'; |
|
| @@ 1029-1031 (lines=3) @@ | ||
| 1026 | if (!in_array($sqlType['name'], $noLimits) && ($column->getLimit() || isset($sqlType['limit']))) { |
|
| 1027 | $buffer[] = sprintf('(%s)', $column->getLimit() ?: $sqlType['limit']); |
|
| 1028 | } |
|
| 1029 | if ($column->getPrecision() && $column->getScale()) { |
|
| 1030 | $buffer[] = '(' . $column->getPrecision() . ',' . $column->getScale() . ')'; |
|
| 1031 | } |
|
| 1032 | ||
| 1033 | $properties = $column->getProperties(); |
|
| 1034 | $buffer[] = $column->getType() === 'filestream' ? 'FILESTREAM' : ''; |
|