This commit is contained in:
parent
6b5aa0c997
commit
82e7d88bea
1 changed files with 1 additions and 1 deletions
|
@ -417,7 +417,7 @@ class Doctrine_DataDict_Mysql extends Doctrine_DataDict
|
|||
{
|
||||
$default = $autoinc = '';
|
||||
if (!empty($field['autoincrement'])) {
|
||||
$autoinc = ' AUTO_INCREMENT PRIMARY KEY';
|
||||
$autoinc = ' AUTO_INCREMENT';
|
||||
} elseif (array_key_exists('default', $field)) {
|
||||
if ($field['default'] === '') {
|
||||
$field['default'] = empty($field['notnull']) ? null : 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue