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
- trying to figure out how to activate my...
please help
- I'm experiencing a critical bug on Appwr...
Hey <@870607367597850624> team / support 👋 I'm experiencing a critical bug on Appwrite Cloud that's blocking my production Flutter app. I've already filed GitH...
- Bug: TOTP MFA verification always fails ...
*Bug: TOTP MFA verify always returns `user_invalid_token` (Cloud 1.8.1, Frankfurt)** Project ID: `68dd48440003e537d849` SDK: `appwrite@18.2.0` (also tested wit...