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
- Relationship data Not showing on update ...
Version : 1.9.0 OS/System : Windows10/Docker Database : MongoDB Clean Zero Installation The first thing I did in the testing process was create a category and...
- I lost my account, only thing i have is ...
So i had this project on appwrite for my web project called Islami zindagi, but i havent used it in a while, now i tried to login, but i could not remember the ...
- 403 The current user has been blocked.
Hello, I have a free plan; I've tried to access my project and I get the message "403 The current user has been blocked." I have database, sites, and auth in us...