Hey, We have a project, functions and collections that we want to share between the developers(no data) and allow them to setup the dev environment quickly. What is the best practices around it?
Another question, what is the right way to update schema collection without losing data?
Thanks
For function, the best way would be use github and share functions, for collection there is no easy way, you should create a code to create, update and delete collection based in a schema maybe stored in a json file.
currently there is no way to update schema collection without delete the data previously, I think there is a issue for that topic
Use the CLI to quickly create things like collections and buckets: https://appwrite.io/docs/tooling/command-line/installation.
Thanks, what should we do if we only want to add an attribute or something like that? is it possible to do that with the cli with data lost?
The CLI won't work for that at the moment as it will wipe the data.
If you want to handle updates, you'll need to create scripts
Cool, thanks for the quick reply
Recommended threads
- Paused project can't activate
I have failed to reactivate one my projects which had been paused
- Site deployment keeps getting failed
Hi good folks, need a hand with Sites deploy Error on every deploy: Synchronous function execution timed out... duration doesn't exceed 30 seconds [exact log ...
- 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...