Skip to content

allowNull corresponds to default value null #33

@SOHELAHMED7

Description

@SOHELAHMED7

Resolve below TODO:

File: src/lib/items/Attribute.php::toColumnSchema():

image

Conclusion:

It is fine to set defaultValue to null if allowNull is true.

If I create a table with multiple columns. And if a column (say "c2") has allowNull is true then when I try to insert (by raw SQL statement) a row without specifying column "c2" then its value will be automatically inserted as null.


Part of #10

and

Part of cebe#180

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions