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
ELIFECYCLE Command 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.Recommended threads
- 500 Internal Error on Free Plan Projects...
Hello Appwrite Support Team, I am experiencing a 500 Internal Server Error when trying to access my free plan projects in the Appwrite Cloud console. Project ...
- Internal 500 Error
Hi team I have two projects on the free plan currently. On the cloud console i cannot access either of them, and one of my apps that is in production is not wo...
- Domain Help
My domain estimately.me is verified in Appwrite DNS but SSL certificate keeps failing with: DNS problem: server failure at resolver looking up A for estimately....