How can I replicate the structure and attributes in different databases in the same project. Ex: Database 01: [client collection]: {name, age, address} replicate to existing database 02 that contains the following attribute Database 02: [client collection]:{name, age}
unfortunately there is no support for it natively, however you could hack your way to get it done using the Appwrite CLI
Hey guys!. building a structure to create my projects due to this limitation, helps me a lot mainly in the development stage, I will share an example in git for you. It's nothing magnificent but it helps me a lot
ok
@wilStark43 sorry for the delay, here it is https://github.com/rafagazani/church_appwrite_example
I added it to login the appwrite cli and the automatic deployment of the functions that are inside the function folder, I hope it will be useful for you
@wilStark43 can we Mark it as solved?
If you have any questions about how to use it, I'm at your disposal.
Rafa, thank you for your attention! The script is very useful for creating new collections, my goal is to go developing and in case I need to update some new attribute do this cascade into other existing databases.
I'm happy to help, just put the variables in env.py that it takes care of creating. I added the treatments to check if each item already exists, if not, it solves it
in my case I have more than one appwrite on different servers. deploying it was a lot of work, you had to log out through the cli, then log in to the other server and then be able to deploy. With this script I just need to put the env and it does what it needs
If you think this solved your problem. mark it with [SOLVED]
[SOLVED] Replicate attribute in database
Recommended threads
- Type Mismatch in AppwriteException
There is a discrepancy in the TypeScript type definitions for AppwriteException. The response property is defined as a string in the type definitions, but in pr...
- What Query's are valid for GetDocument?
Documentation shows that Queries are valid here, but doesn't explain which queries are valid. At first I presumed this to be a bug, but before creating a githu...
- Appwrite exception: user_unauthorized, t...
After refreshing the app it is working perfectly