Skip to content
Back

Unknown attribute type: varchar / text

  • 0
  • Tools
  • Databases
  • Web
  • Cloud
Dan6erbond
4 Mar, 2026, 08:47

Since the string type is deprecated I tried using varchar and text in some newer tables, but when running appwrite pull tables && appwrite types ./src/lib/appwrite/appwrite.ts I get:

TypeScript
Info: Fetching tables ...
? From which database would you like to pull collections? Skincare Buddy (skincare-buddy)
Info: Pulling all tables from Skincare Buddy database ...
Success: Successfully pulled 7 tables from 1 tableDBs.
Info: Detected language: ts
Info: Found 7 tables: products, units, routines, regiments, steps, wishlist_products, profiles
Info: Found 35 columns across all tables
Info: For detailed error pass the --verbose or --report flag
Error: ejs:24
    22| <% const propertyName = strict ? toCamelCase(attribute.key) : attribute.key; -%>
    23| <% const isValidIdentifier = /^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(propertyName); -%>
 >> 24|     <% if (isValidIdentifier) { %><%- propertyName %><% } else { %>"<%- propertyName %>"<% } %>: <%- getType(attribute, collections, collection.name) %>;
    25| <% } -%>
    26| }<% if (index < collections.length - 1) { %>
    27| <% } %>

Unknown attribute type: varchar
ELIFECYCLECommand failed with exit code 1.```
I have `appwrite@^21.5.0`.
TL;DR
Developers are experiencing issues when trying to use `varchar` and `text` as attribute types in newer tables. Running the `appwrite pull tables` command shows an error stating "Unknown attribute type: varchar". This error occurs even though `appwrite@^21.5.0` is being used.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more