1
0
mirror of synced 2024-12-14 23:26:04 +03:00
This commit is contained in:
zYne 2007-03-26 20:52:34 +00:00
parent 7157693d28
commit 4865602ee7

View File

@ -103,22 +103,22 @@ class Doctrine_Import_Builder
$a = array(); $a = array();
if ($column['default']) { if (isset($column['default']) && $column['default']) {
$a[] = '\'default\' => ' . var_export($column['default'], true); $a[] = '\'default\' => ' . var_export($column['default'], true);
} }
if ($column['notnull']) { if (isset($column['notnull']) && $column['notnull']) {
$a[] = '\'notnull\' => true'; $a[] = '\'notnull\' => true';
} }
if ($column['primary']) { if (isset($column['primary']) && $column['primary']) {
$a[] = '\'primary\' => true'; $a[] = '\'primary\' => true';
} }
if ($column['autoinc']) { if (isset($column['autoinc']) && $column['autoinc']) {
$a[] = '\'autoincrement\' => true'; $a[] = '\'autoincrement\' => true';
} }
if ($column['unique']) { if (isset($column['unique']) && $column['unique']) {
$a[] = '\'unique\' => true'; $a[] = '\'unique\' => true';
} }
if ($column['unsigned']) { if (isset($column['unsigned']) && $column['unsigned']) {
$a[] = '\'unsigned\' => true'; $a[] = '\'unsigned\' => true';
} }