How do default array values work?
Can't find any discord or GH posts about it. It's not in docs either. If you create an array column (postgres), will it automatically create a default value of
[]
even if no default is specified? for instance
text('someField').array()
is it correct that this will not require me to specify someField
upon insertion and will automatically create an empty array for me?
related: i found this bug during introspection for empty array default values https://github.com/drizzle-team/drizzle-kit-mirror/issues/276GitHub
[BUG]: Postgres introspect gives bugged value for default empty arr...
I have a text field with a default array value of []. When i run drizzle-kit introspect:pg The field gets copied in as text('myListField').default('RRAY[').array()
0 Replies