---
title: "Comment by Duane Creates on \"Schema-Based Multi-Tenancy with NestJS and Prisma\" | Hashnode"
description: "Hi, I&#39;m curious. Since you have a database per tenant, how do you make sure all those databases share the same structure and get all the latest migrations?"
url: "https://hashnode.com/posts/schema-based-multi-tenancy-with-nestjs-and-prisma/5fe1c2b1a669d865551f6756/comment/611585f71f1bd93c4f35b8de"
---

[Discussion](https://hashnode.com/posts/schema-based-multi-tenancy-with-nestjs-and-prisma/5fe1c2b1a669d865551f6756)

Comment [Schema-Based Multi-Tenancy with NestJS and Prisma](https://hashnode.com/posts/schema-based-multi-tenancy-with-nestjs-and-prisma/5fe1c2b1a669d865551f6756)

[Duane Creates](https://hashnode.com/@duanecreates)

[Aug 12, 2021](https://hashnode.com/posts/schema-based-multi-tenancy-with-nestjs-and-prisma/5fe1c2b1a669d865551f6756/comment/611585f71f1bd93c4f35b8de)

Hi, I'm curious. Since you have a database per tenant, how do you make sure all those databases share the same structure and get all the latest migrations?

[Dario Ielardi](https://hashnode.com/@darioielardi)

[Aug 13, 2021](https://hashnode.com/posts/schema-based-multi-tenancy-with-nestjs-and-prisma/5fe1c2b1a669d865551f6756/comment/611585f71f1bd93c4f35b8de#reply-6116598913a99e48922ee7c8)

Hi, We have a non-breaking migrations policy and we migrate with a custom script to keep schemas in sync.

[Carlos Perché](https://hashnode.com/@cfpperche)

[Sep 28, 2021](https://hashnode.com/posts/schema-based-multi-tenancy-with-nestjs-and-prisma/5fe1c2b1a669d865551f6756/comment/611585f71f1bd93c4f35b8de#reply-6153ab669c8bfd08f5ba7e06)

[Dario Ielardi](https://hashnode.com/@darioielardi) Could you give a brief example of how to synchronize tenants' databases synced?

[Antonio Jose](https://hashnode.com/@antonio609)

[Nov 9, 2021](https://hashnode.com/posts/schema-based-multi-tenancy-with-nestjs-and-prisma/5fe1c2b1a669d865551f6756/comment/611585f71f1bd93c4f35b8de#reply-618aaca8468c06249afc51ae)

[Dario Ielardi](https://hashnode.com/@darioielardi) How you synchronize the shemas? How you run your migrations?
