I have a CF project for Entity Framework 6 that already has a few migrations set up.
Since the model is now stable, the existing migration history does not need to be preserved.
Is it possible to restart the model and include every migration command in the first migration?
A unique, non-clustered index, for instance, is added during the second migration whereas a column is added during the first. I now desire to observe all of these changes in
instead of through distinct migrations.
Migrations include a
. You can always remove the existing migrations and then add a new migration to re-scaffold your application. The
Your model is unaffected by the process; only the database is altered. Use
You may demolish every migration with if you want one that begins with no database and ends with your existing model.
. It makes sense to delete the database before running
as a test to ensure that all database changes are coordinated.
Keep in mind that if you remove your migrations to
then perform an
, you should carefully examine the generated scaffold because it is quite likely to differ greatly from the incremental changes.