Syncing Prisma across multiple repo's
Multiple of our software's services use prisma ORM to interact with the same DB. However, we oftentimes must manually sync the schema across the different repo's that the services live in when we do a single DB migration.
This seems like it would be a common issue, so is there a recommended way to go about this?
2 Replies
Hi @al
One approach would be to create a custom npm package that contains the Prisma schema file. This package can then be used across all your services to keep the schema synchronized. This was also mentioned here
GitHub
Handle multiple servers with same prisma instance · prisma prisma ·...
Hi ! I'd like to create a second server that would handle cron jobs and long running tasks such as checking and modifying hundreds of rows. Given that he second server would introduce new model...
thanks for the response @RaphaelEtim , in my situation one of my services actually uses the python prisma client instead of the node package, is there a recommended practice for this circumstance as well?