Open andrew-farries opened 4 days ago
this is entirely on me 🙏 , but I agree not_null
is much better! btw, to do this backward compatible we could allow both nullable
and not_null
(but not both at the same time, at least if their values disagree) today. Then deprecate nullable
with 1.0.
In #132 it was decided to use
nullable
overnot_null
to set column nullability increate_table
,add_column
andalter_column
operations, for example:As a breaking change before
v1
we should consider whether we want to reverse this decision and usenot_null
instead.Using
not_null
is less surprising as columns in Postgres are nullable by default, whereas by usingnullable
's implicit default offalse
we reverse this expectation.