This commit is contained in:
parent
6b5aa0c997
commit
82e7d88bea
@ -417,7 +417,7 @@ class Doctrine_DataDict_Mysql extends Doctrine_DataDict
|
|||||||
{
|
{
|
||||||
$default = $autoinc = '';
|
$default = $autoinc = '';
|
||||||
if (!empty($field['autoincrement'])) {
|
if (!empty($field['autoincrement'])) {
|
||||||
$autoinc = ' AUTO_INCREMENT PRIMARY KEY';
|
$autoinc = ' AUTO_INCREMENT';
|
||||||
} elseif (array_key_exists('default', $field)) {
|
} elseif (array_key_exists('default', $field)) {
|
||||||
if ($field['default'] === '') {
|
if ($field['default'] === '') {
|
||||||
$field['default'] = empty($field['notnull']) ? null : 0;
|
$field['default'] = empty($field['notnull']) ? null : 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user