tweak for mysql

This commit is contained in:
Brion Vibber 2010-10-11 19:14:33 -07:00
parent 9364e446b1
commit 7723d15cd0

View File

@ -444,19 +444,15 @@ class MysqlSchema extends Schema
function columnSql(array $cd) function columnSql(array $cd)
{ {
$line = array(); $line = array();
$line[] = parent::_columnSql($cd); $line[] = parent::columnSql($cd);
if ($cd['type'] == 'serial') { if ($cd['type'] == 'serial') {
$line[] = 'auto_increment'; $line[] = 'auto_increment';
} }
if (!empty($cd['extra'])) {
$line[] = $cd['extra']; // hisss boooo
}
if (!empty($cd['description'])) { if (!empty($cd['description'])) {
$line[] = 'comment'; $line[] = 'comment';
$line[] = $this->quote($cd['description']); $line[] = $this->quoteValue($cd['description']);
} }
return implode(' ', $line); return implode(' ', $line);