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
- education plan not activated
Hi I have an edu id 13103046@iubat.edu but when I am trying to claim my plan and trying to logging with github where education student plan active. the appwrite...
- 500 simultaneous OAuth logins from the s...
Hi, I'd like to ask about rate limiting around Google OAuth login on Appwrite Cloud. **OVERVIEW** Service type: A PWA (web app) for members of a university clu...
- Suspicious access pattern detected when ...
Hello, I am having trouble restoring my project. In the past it worked with no problems, but today I get an error "Suspicious access pattern detected". How can ...