Browse Source

Update PostgresSchema.php

AJ Quick 9 years ago
parent
commit
d2a0560102
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Database/Schema/PostgresSchema.php

+ 1 - 1
src/Database/Schema/PostgresSchema.php

@@ -421,7 +421,7 @@ class PostgresSchema extends BaseSchema
                 $defaultValue = (bool)$defaultValue;
             }
             $out .= ' DEFAULT ' . $this->_driver->schemaValue($defaultValue);
-        } elseif (isset($data['null']) && $data['null'] === true) {
+        } elseif (isset($data['null']) && $data['null'] !== false) {
             $out .= ' DEFAULT NULL';
         }