Commit f2e19fd9 authored by zYne's avatar zYne

added 'int' as an alias for 'integer'

parent 1132282f
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment