changed autoinc key to autoincrement
This commit is contained in:
parent
33ed595536
commit
4a99e766a3
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user