From 10f96e01e3da1b68179137996013b7e336d54bac Mon Sep 17 00:00:00 2001 From: zYne Date: Tue, 17 Apr 2007 17:36:55 +0000 Subject: [PATCH] fixes #309 --- lib/Doctrine/Export.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/Doctrine/Export.php b/lib/Doctrine/Export.php index e15aaa929..58389c615 100644 --- a/lib/Doctrine/Export.php +++ b/lib/Doctrine/Export.php @@ -551,6 +551,9 @@ class Doctrine_Export extends Doctrine_Connection_Module } } + if ($field['type'] === 'boolean') { + $fields['default'] = $this->conn->convertBooleans($field['default']); + } $default = ' DEFAULT ' . $this->conn->quote($field['default'], $field['type']); } return $default; @@ -679,7 +682,7 @@ class Doctrine_Export extends Doctrine_Connection_Module if (isset($definition[$v])) { $upper = strtoupper($definition[$v]); - + switch ($upper) { case 'CASCADE': case 'SET NULL':