Commit 82e7d88b authored by zYne's avatar zYne

--no commit message

--no commit message
parent 6b5aa0c9
...@@ -417,7 +417,7 @@ class Doctrine_DataDict_Mysql extends Doctrine_DataDict ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment