sqlite DEFAULT is not JSON-encoded
When using
generates:
(should be
Using an empty array
(should be
text("...", { mode: "json" }) with .default(), the default value is not JSON encoded leading to invalid SQL generation by drizzle-kit.generates:
(should be
'""' instead)Using an empty array
.$type<string[]>().default([]) generates nothing:(should be
'[]')