| @@ 173-182 (lines=10) @@ | ||
| 170 | $column->type = $matches['type']; |
|
| 171 | ||
| 172 | //Fetching size options |
|
| 173 | if (!empty($matches['options'])) { |
|
| 174 | $options = explode(',', $matches['options']); |
|
| 175 | ||
| 176 | if (count($options) > 1) { |
|
| 177 | $column->precision = (int)$options[0]; |
|
| 178 | $column->scale = (int)$options[1]; |
|
| 179 | } else { |
|
| 180 | $column->size = (int)$options[0]; |
|
| 181 | } |
|
| 182 | } |
|
| 183 | ||
| 184 | if ($column->type == 'enum') { |
|
| 185 | //Quoted column name |
|
| @@ 188-197 (lines=10) @@ | ||
| 185 | ||
| 186 | $column->type = $matches['type']; |
|
| 187 | ||
| 188 | if (!empty($matches['options'])) { |
|
| 189 | $options = explode(',', $matches['options']); |
|
| 190 | ||
| 191 | if (count($options) > 1) { |
|
| 192 | $column->precision = (int)$options[0]; |
|
| 193 | $column->scale = (int)$options[1]; |
|
| 194 | } else { |
|
| 195 | $column->size = (int)$options[0]; |
|
| 196 | } |
|
| 197 | } |
|
| 198 | ||
| 199 | //Fetching enum values |
|
| 200 | if ($column->abstractType() == 'enum' && !empty($options)) { |
|