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
thdxrOP2y ago
adding default then adding not-null works
Andrii Sherman
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
thdxrOP2y ago
woo

Did you find this page helpful?