Support PostgreSQL `jsonb` columns
oXtxNt9U opened this issue · 0 comments
oXtxNt9U commented
PostgreSQL has different data types for dealing with JSON. Using schemaless attributes, the resulting column is always of type json
. But in almost all cases one wants to use jsonb
over json
when working with Postgres.
I saw this previous issue where someone asked something similar, but the answers given are a bit minimal:
#15
I'm not sure if it's supposed to be supported already. If it's already possible or there's a workaround using this package please let me know!
Otherwise, would it be possible to add support for this?
E.g. something like $table->schemalessAttributes('extra_attributes', [ 'type' => 'jsonb'])
.
Many thanks in advance.