Base solution for your next web application
Open Closed

Enable Automatic Migrations #7870


User avatar
0
sebastian.morar created

Hi,

I am working on implementing CI/CD from bitbucket and the only step left is applying the migrations. I believe enabling automatic migration will solve the problem, but I'm not sure how to do that.

Running context.Database.Migrate(); in SeedHostDb doesn't work.

Could you please help me with enabling automatic migrations?

Thanks


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

    Hi, SeedHostdb is only used during application startup.

    In your CD pipelines, you can execute the XXX.Migrator project (executable) to run migration.

    It will take care of host and tenant database migrations

  • User Avatar
    0
    ismcagdas created
    Support Team

    This issue is closed because it has not had recent activity for a long time.