column "roles" is of type integer[] but default expression is of type integer

roles: integer("roles")
.array()
.$type<UserRole[]>()
.default([UserRole.Member]),
roles: integer("roles")
.array()
.$type<UserRole[]>()
.default([UserRole.Member]),
I don't understand what the problem is. It's clearly an array, right?
1 Reply
nk
nkOP7mo ago
It seems like drizzle-kit isn't detecting the type correctly
Want results from more Discord servers?
Add your server