Back

schema best practice? (single source of truth)

  • 0
  • Databases
  • Cloud
Elron
12 Feb, 2025, 02:18

im using appwrite, and i have two project : dev and prod. i need the database structure to match, and also modify it sometimes (add/remove attributes from specific collection, or auto create a collection "users" if it doesnt exixt for example) whats a best practice for that?

Btw im using svelte 5

TL;DR
Utilize the appwrite CLI and an appwrite.json file for schema management in multiple projects. Make sure to adjust the database structure as needed (add/remove attributes, create new collections). Additionally, you can reference the provided link for more information.
Kenny
12 Feb, 2025, 02:22

Using the appwrite cli and an appwrite.json file would probably be the best/easiest way to accomplish this.

https://appwrite.io/docs/tooling/command-line/installation

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more