[BUG]: Default values for BigInt column causes do not know how to serialize a bigint when generating migration #3609
Labels
bug
Something isn't working
drizzle/kit
has-pr
This issue has one or more PRs that that could close the issue when merged
priority
Will be worked on next
Report hasn't been filed before.
What version of
drizzle-orm
are you using?0.31.2
What version of
drizzle-kit
are you using?0.22.6
Other packages
No response
Describe the Bug
When generating migration -
If I add default value for BigInt column it causes this error:
TypeError: Do not know how to serialize a bigint
So if we add column like this:
that will then produce that error
But if we do it like this:
then it will work.
So it's not able to create proper json file from schema which prevents it to create SQL file.
The text was updated successfully, but these errors were encountered: