Fixing DatabaseDriver to specify nullable => true instead of notnull => false
This commit is contained in:
parent
5dbd40563c
commit
7ac08931bc
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user