Replies: 1 comment 1 reply
-
Drizzle has made it easy to define reusable column types. For your case you can use the following when defining your schema. const varchar255 = (name: string) => varchar(name, { length: 255 }); |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
hi all
after using drizzle for a while, i realize that i used to specify varchar length, isn't the default length for VARCHAR should be 255 characters?, i think drizzle should provide this default behaviour
Beta Was this translation helpful? Give feedback.
All reactions