Abp: how to trigger migration when tenant added!

Created on 30 Mar 2020  路  3Comments  路  Source: abpframework/abp

I know that database migration is triggered when adding tenants! but when db migration is in another microservice,It will be invalid. What should I do!?

question

Most helpful comment

I mean DataSeeder !

All 3 comments

I know that database migration is triggered when adding tenants!

I remember now that we can only migrate manually, Can't migrate the database at runtime.

Migrate the database at runtime feature has been planned to improve, maybe v2.5.

https://docs.abp.io/en/abp/latest/Entity-Framework-Core-Migrations

I mean DataSeeder !

In a microservice world, each service should care about its own data seed. They can register to new tenant created distributed event and seed their data.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hitaspdotnet picture hitaspdotnet  路  3Comments

derily picture derily  路  3Comments

hikalkan picture hikalkan  路  3Comments

wocar picture wocar  路  3Comments

ChangYinShung picture ChangYinShung  路  3Comments