From 4428b51746d8b2ca9e1a6697e8bcb6fcb0844e82 Mon Sep 17 00:00:00 2001 From: "Jonathan.Wage" Date: Thu, 25 Oct 2007 22:26:25 +0000 Subject: [PATCH] Fixed bug with default for boolean values not working properly. --- lib/Doctrine/Import/Schema.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/Doctrine/Import/Schema.php b/lib/Doctrine/Import/Schema.php index b5342c390..beaabb358 100644 --- a/lib/Doctrine/Import/Schema.php +++ b/lib/Doctrine/Import/Schema.php @@ -137,10 +137,6 @@ class Doctrine_Import_Schema $array = $schema['schema']; foreach ($array as $name => $properties) { - if (!isset($properties['className'])) { - print_r($properties); - exit; - } if ( ! empty($models) && !in_array($properties['className'], $models)) { continue; } @@ -311,7 +307,7 @@ class Doctrine_Import_Schema $colDesc['fixed'] = isset($field['fixed']) ? (int) $field['fixed']:null; $colDesc['unsigned'] = isset($field['unsigned']) ? (bool) $field['unsigned']:null; $colDesc['primary'] = isset($field['primary']) ? (bool) (isset($field['primary']) && $field['primary']):null; - $colDesc['default'] = isset($field['default']) ? (string) $field['default']:null; + $colDesc['default'] = isset($field['default']) ? $field['default']:null; $colDesc['notnull'] = isset($field['notnull']) ? (bool) (isset($field['notnull']) && $field['notnull']):null; $colDesc['autoincrement'] = isset($field['autoincrement']) ? (bool) (isset($field['autoincrement']) && $field['autoincrement']):null; $colDesc['autoincrement'] = isset($field['autoinc']) ? (bool) (isset($field['autoinc']) && $field['autoinc']):$colDesc['autoincrement'];