I restructured my project, which led to a change in the name of the database context namespace and the associated configuration of the first code. At that moment, I had one migration using "InitialCreate", and so my __MigrationHistory database contained one row with some MigrationId and ContextKey containing the namespace name and class name of the Configuration class.
After I moved things, the implementation of Get-Migrations did not get results, after changing the ContextKey in accordance with my colleague's advice, the migration "InitialCreate" was correctly listed.
What steps should I take during the changes, so the continuity of my migrations was not broken, which prevented renaming ContextKey manually? Obviously, this does not matter much for one applied migration, but for dozens of applied migrations it would be a huge pain.
source share