added 'int' as an alias for 'integer'
This commit is contained in:
parent
1132282fee
commit
f2e19fd9fa
@ -181,6 +181,7 @@ class Doctrine_DataDict_Mysql extends Doctrine_DataDict
|
||||
}
|
||||
return 'LONGBLOB';
|
||||
case 'integer':
|
||||
case 'int':
|
||||
case 'enum':
|
||||
if (!empty($field['length'])) {
|
||||
$length = $field['length'];
|
||||
@ -211,7 +212,7 @@ class Doctrine_DataDict_Mysql extends Doctrine_DataDict
|
||||
$length = !empty($field['length']) ? $field['length'] : 18;
|
||||
return 'DECIMAL(' . $length . ',' . 0 . ')'; //$this->dbh->options['decimal_places'] . ')';
|
||||
}
|
||||
return '';
|
||||
throw new Doctrine_DataDict_Exception('Unknown column type.');
|
||||
}
|
||||
/**
|
||||
* Maps a native array description of a field to a MDB2 datatype and length
|
||||
|
Loading…
Reference in New Issue
Block a user