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
- self-hosted auth: /v1/account 404 on saf...
Project created in React/Next.js, Appwrite version 1.6.0. Authentication works in all browsers except Safari (ios), where an attempt to connect to {endpoint}/v1...
- delete document problems
i don't know what's going on but i get an attribute "tournamentid" not found in the collection when i try to delet the document... but this is just the document...
- Update User Error
```ts const { users, databases } = await createAdminClient(); const session = await getLoggedInUser(); const user = await users.get(session.$id); if (!use...