function typeAndSize($column) { if ($column['type'] == 'enum') { $vals = array_map(array($this, 'quote'), $column['enum']); return 'enum(' . implode(',', $vals) . ')'; } else { if ($this->_isString($column)) { $col = parent::typeAndSize($column); if (!empty($column['charset'])) { $col .= ' CHARSET ' . $column['charset']; } if (!empty($column['collate'])) { $col .= ' COLLATE ' . $column['collate']; } return $col; } else { return parent::typeAndSize($column); } } }
function typeAndSize($column) { if ($column['type'] == 'enum') { $vals = array_map(array($this, 'quote'), $column['enum']); return "text check ({$name} in " . implode(',', $vals) . ')'; } else { return parent::typeAndSize($column); } }