You're about to add not-null version without default value

I added this column
version: int("version").notNull().default(0),
version: int("version").notNull().default(0),
and it's trying to truncate because it thinks there's on default value
3 Replies
thdxr
thdxrOP17mo ago
adding default then adding not-null works
Andrii Sherman
Andrii Sherman17mo ago
fixing this one is also fixed in 0.19.7 Also found an issue with timestamps. It should be fixed in 0.19.7 as well
thdxr
thdxrOP17mo ago
woo
Want results from more Discord servers?
Add your server