dbal
dbal copied to clipboard
Nullable columns without a default value
Feature Request
| Q | A |
|---|---|
| New Feature | yes |
| RFC | no |
Summary
Originally reported by @janedbal in #5970.
Our Column class has the properties $_default and $_notnull which are interpreted like this:
$_notnull |
$_default |
Actual default |
|---|---|---|
true |
any string literal | the specified literal |
true |
null |
No default |
false |
any string literal | the specified literal |
false |
null |
null |
A nullable column without a default cannot be modeled here which means that DBAL also cannot introspect such a column properly. See #5970 for a failing test.