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