The problem that I am facing is that when I "Add-Migration", it seems that no comparison with the target database is performed, and the Up / Down methods are empty.
It starts with me in different environments. Migration changes work fine when I update the database, and it targets one specific database, my dev database.
When I change the connection string for the target another database, another developer window on another server and try to add-migrate for this particular environment, the Up / Down methods are always empty.
I tried to target the update database to undo changes to the previous migration in the second dev block, but nothing changed.
Is there something I need to do this if I push the first code changes from one environment to another?
source share