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
- Auto Updating Backend & Auth via Appwrit...
<@870607367597850624> Hey everyone 👋 I wanted to ask to ask for a friend, he’s asking if Appwrite be used in a similar way to Supabase when integrated with AI ...
- Is Database Operators available in Cloud...
Is it possible to do the above?
- How to use appwrite types
I am using appwrite types --language ts ./types to generate the types yielding something like: ``` import type { Models } from 'node-appwrite'; // This file i...