Commit 9b4f5db1 authored by romanb's avatar romanb

fix for mysql export module (allow specifying a default without specifying a length)

parent f1c6657c
......@@ -500,7 +500,7 @@ class Doctrine_Export_Mysql extends Doctrine_Export
public function getDefaultFieldDeclaration($field)
{
$default = '';
if (isset($field['default']) && $field['length'] <= 255) {
if (isset($field['default']) && ( ! isset($field['length']) || $field['length'] <= 255)) {
if ($field['default'] === '') {
$field['default'] = empty($field['notnull'])
? null : $this->valid_default_values[$field['type']];
......
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