Base solution for your next web application
Open Closed

Multi tenancy, multiple database migration #1628


User avatar
0
kythor created

how can I get my new custom entity table to be created in every database? When using Add-Migration and Update-Database, it will only create it in the host database.

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

2 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    You can use Migrator project in the solution. It will apply migrations to all tenant databases for you.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    kythor created

    perfect, thx

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)