From 9b4f5db1359187dec504a3e0eba0c7f372d6885a Mon Sep 17 00:00:00 2001 From: romanb Date: Fri, 19 Oct 2007 11:13:49 +0000 Subject: [PATCH] fix for mysql export module (allow specifying a default without specifying a length) --- lib/Doctrine/Export/Mysql.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/Export/Mysql.php b/lib/Doctrine/Export/Mysql.php index 86facf549..900d7c1ab 100644 --- a/lib/Doctrine/Export/Mysql.php +++ b/lib/Doctrine/Export/Mysql.php @@ -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']];