Commit 7ac08931 authored by Jonathan H. Wage's avatar Jonathan H. Wage

Fixing DatabaseDriver to specify nullable => true instead of notnull => false

parent 5dbd4056
...@@ -100,7 +100,7 @@ class DatabaseDriver implements Driver ...@@ -100,7 +100,7 @@ class DatabaseDriver implements Driver
} else if ($column->getType() instanceof \Doctrine\DBAL\Types\IntegerType) { } else if ($column->getType() instanceof \Doctrine\DBAL\Types\IntegerType) {
$fieldMapping['unsigned'] = $column->getUnsigned(); $fieldMapping['unsigned'] = $column->getUnsigned();
} }
$fieldMapping['notnull'] = $column->getNotNull(); $fieldMapping['nullable'] = $column->getNotNull() ? false : true;
if (isset($fieldMapping['id'])) { if (isset($fieldMapping['id'])) {
$ids[] = $fieldMapping; $ids[] = $fieldMapping;
......
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