Back

Best way to migrate to relations?

  • 0
  • Cloud
Marius Bolik
8 Nov, 2023, 10:24

Has anyone a good solution to migrate to releations? Wie are currently using the property "shop_id" which is a string and we want to use the property "shop" which will be a releation to the shops collection. What is the recommended way to archive that? Is there any code snipped?

TL;DR
The user is looking for a solution to migrate from using a string property "shop_id" to a relational property "shop" in their database. They are seeking recommendations and code snippets for accomplishing this. A helpful resource for database migration in production is suggested.
Drake
13 Nov, 2023, 21:02

The same as doing any sort of database migration in production. In steps, ensuring backwards compatibility. This is a good read: https://teamplify.com/blog/zero-downtime-DB-migrations/

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