Open mimamuh opened 8 months ago
As a workaround:
export const myTable = pgTable('my_table', {
id: bigserial('id', { mode: 'bigint' }).primaryKey(),
value: bigint('value', {
mode: 'bigint',
})
.notNull()
.default(sql`0::bigint`), // <- causes the error
});
What version of
drizzle-orm
are you using?0.29.3
What version of
drizzle-kit
are you using?0.20.14
Describe the Bug
schema.ts
file where I have a value of typeBigInt
with a.default(0n)
directive.drizzle-kit
command likedrizzle-kit generate:pg
, it causes anDo not know how to serialize a BigInt
error.Schema
Error
Expected behavior
Know how to seriazile BigInt values in
.default(...)
directive.Environment & setup
No response