1
0
mirror of synced 2024-12-13 14:56:01 +03:00

detect autoincrement columns

This commit is contained in:
runa 2006-10-31 18:24:14 +00:00
parent 2704af6435
commit 0148078757

View File

@ -332,6 +332,7 @@ class Doctrine_DataDict_Mysql extends Doctrine_DataDict {
'primary' => (strtolower($val['key']) == 'pri'),
'default' => $val['default'],
'notnull' => (bool) ($val['null'] != 'YES'),
'autoinc' => (bool) (strpos($val['extra'],"auto_increment") > -1),
);
$columns[$val['field']] = new Doctrine_Schema_Column($description);
}