/** * @param string $fieldType * @return string */ protected function _simplifiedType($fieldType) { if (strpos(strtolower($fieldType), 'tinyint(1)') !== false) { return 'boolean'; } elseif (preg_match('/enum/i', $fieldType)) { return 'string'; } return parent::_simplifiedType($fieldType); }
/** * @param string $sqlType * @return int */ protected function _extractScale($sqlType) { if (preg_match('/^money/', $sqlType)) { return 2; } return parent::_extractScale($sqlType); }