Hi, trying to sort the attribs on a freshly created collection, I used the CLI appwrite deploy collection command but I ended with a new collection much more messy than what I created at first! I expected the attributes to be sorted as they appear in my appwrite.json file. Is there a way to achieve this? Thx.
You'll have to write a script using a server SDK
Or fork the CLI lol
You might also want to add a 👍 to this issue: https://github.com/appwrite/sdk-for-cli/issues/79
The reason why is all the attributes are created at once: https://github.com/appwrite/sdk-for-cli/blob/ae7f9fecbbe5cc0cc702e878fd48cc8559fa18b2/lib/commands/deploy.js#L640 and so when they actually get created or finish creating is "random"
OK thx, I suspected something with the asynchronous way of creating the attribs... 🙂 Well, I think I will stick with the randomness of my initial attribs as they are less random than what I ended up! 🙂
[SOLVED] CLI deploy = mess in the attribs
I submitted a PR with a --preserve option for deploy collection.
Recommended threads
- Failed to generate functions SSL
```appwrite-worker-certificates | Cannot renew domain (functions.domain.com) on attempt no. 9 certificate: Failed to verify domain DNS records. appwrite-worker...
- after using the coding agents its code b...
can anybody suggest me an ai tool that i can use to create the system desgins without the suggestion things because it at last create a mess
- Unknown attribute type: varchar / text
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/li...