Hi,
I noticed that notNull: true in entityDefs works for some field types, e.g. int, but seems to be ignored for: float, date, datetime, link, linkParent
Example:
still produces a nullable DB column.
From the ORM converter, it looks like some field-type definitions override notNull, while FOREIGN_ID attributes are explicitly forced to notNull = false.
Is this intentional behavior? Is there a recommended way to enforce DB-level NOT NULL for these field types?
Thanks.
I noticed that notNull: true in entityDefs works for some field types, e.g. int, but seems to be ignored for: float, date, datetime, link, linkParent
Example:
Code:
"amount": {
"type": "float",
"required": true,
"notNull": true
}
From the ORM converter, it looks like some field-type definitions override notNull, while FOREIGN_ID attributes are explicitly forced to notNull = false.
Is this intentional behavior? Is there a recommended way to enforce DB-level NOT NULL for these field types?
Thanks.

Comment