Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
rizen committed Apr 26, 2024
1 parent 9ef2452 commit f17206f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ving/schema/helpers.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ export const dbDateTime = (prop) => {
* @returns a drizzle field schema definition
*/
export const dbVarChar = (prop) => {
if (prop.length > 255)
throw ouch(442, `${prop.name}, a varchar field, cannot have a length greater than 255.`);
if (prop.length > 256)
throw ouch(442, `${prop.name}, a varchar field, cannot have a length greater than 256.`);
return `varchar('${prop.name}', { length: ${prop.length} }).notNull().default('${stringDefault(prop, true)}')`;
}

Expand Down

0 comments on commit f17206f

Please sign in to comment.