defaultValue
for JSON DataType doesn't work in MySQL in MySQL 8.
#13065
Labels
dialect: mysql
For issues and PRs. Things that involve MySQL (and do not involve all dialects).
type: feature
For issues and PRs. For new features. Never breaking changes.
Issue Description
defaultValue
for JSON DataType doesn't work.What are you doing?
I am creating a model with a column called
database
and adefaultValue
of a stringified JSON object.Here is the link to the SSCCE for this issue: LINK-HERE
What do you expect to happen?
The query for syncing the database column must be this:
What is actually happening?
But the query for syncing the database column is this:
Additional context
This works well with
JSONB
datatype but I'm using MySQL and I need JSON.EDIT: I think this PR is causing the problem.
Environment
Issue Template Checklist
How does this problem relate to dialects?
Would you be willing to resolve this issue by submitting a Pull Request?
The text was updated successfully, but these errors were encountered: