| @@ 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']) . ')'; |
|
| @@ 1040-1042 (lines=3) @@ | ||
| 1037 | if (!in_array($sqlType['name'], $noLimits) && ($column->getLimit() || isset($sqlType['limit']))) { |
|
| 1038 | $buffer[] = sprintf('(%s)', $column->getLimit() ?: $sqlType['limit']); |
|
| 1039 | } |
|
| 1040 | if ($column->getPrecision() && $column->getScale()) { |
|
| 1041 | $buffer[] = '(' . $column->getPrecision() . ',' . $column->getScale() . ')'; |
|
| 1042 | } |
|
| 1043 | ||
| 1044 | $properties = $column->getProperties(); |
|
| 1045 | $buffer[] = $column->getType() === 'filestream' ? 'FILESTREAM' : ''; |
|