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
- Why does this happen?
`AppwriteException: general_argument_invalid, Invalid `secret` param: Value must be a valid string and at least 1 chars and no longer than 256 chars (400)` the...
- How to properly implement custom domain?...
- Site deployment does not work.
I can change a file, deploy, change does not take effect. Delete file in repo, push changes,deploy. Old file remains undeleted Duplicate file, rename it, push,...