1
0
mirror of synced 2025-02-06 23:39:25 +03:00

changed autoinc key to autoincrement

This commit is contained in:
zYne 2007-11-25 20:22:50 +00:00
parent 33ed595536
commit 4a99e766a3

View File

@ -130,19 +130,19 @@ class Doctrine_Import_Mysql extends Doctrine_Import
$values = isset($decl['values']) ? $decl['values'] : array(); $values = isset($decl['values']) ? $decl['values'] : array();
$description = array( $description = array(
'name' => $val['field'], 'name' => $val['field'],
'type' => $decl['type'][0], 'type' => $decl['type'][0],
'alltypes' => $decl['type'], 'alltypes' => $decl['type'],
'ntype' => $val['type'], 'ntype' => $val['type'],
'length' => $decl['length'], 'length' => $decl['length'],
'fixed' => $decl['fixed'], 'fixed' => $decl['fixed'],
'unsigned' => $decl['unsigned'], 'unsigned' => $decl['unsigned'],
'values' => $values, 'values' => $values,
'primary' => (strtolower($val['key']) == 'pri'), 'primary' => (strtolower($val['key']) == 'pri'),
'default' => $val['default'], 'default' => $val['default'],
'notnull' => (bool) ($val['null'] != 'YES'), 'notnull' => (bool) ($val['null'] != 'YES'),
'autoinc' => (bool) (strpos($val['extra'], 'auto_increment') !== false), 'autoincrement' => (bool) (strpos($val['extra'], 'auto_increment') !== false),
); );
$columns[$val['field']] = $description; $columns[$val['field']] = $description;
} }