| @@ 178-187 (lines=10) @@ | ||
| 175 | ||
| 176 | $column->type = $matches['type']; |
|
| 177 | ||
| 178 | if (!empty($matches['options'])) { |
|
| 179 | $options = explode(',', $matches['options']); |
|
| 180 | ||
| 181 | if (count($options) > 1) { |
|
| 182 | $column->precision = (int)$options[0]; |
|
| 183 | $column->scale = (int)$options[1]; |
|
| 184 | } else { |
|
| 185 | $column->size = (int)$options[0]; |
|
| 186 | } |
|
| 187 | } |
|
| 188 | ||
| 189 | //Fetching enum values |
|
| 190 | if ($column->abstractType() == 'enum' && !empty($options)) { |
|
| @@ 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 |
|