Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Merging / Consolidate migrations in EF Core #5739


User avatar
0
sbenfares created

Hi,

What is the best Way to merge migrations in one.

I Have in my EF Core Migrations :

  • 20180807062930_Upgrade_ABP_v3.8.2.cs
  • 2018XXXX_Upgrade_MyMigration1.cs
  • 2018XXXX_Upgrade_MyMigration2.cs
  • 2018XXXX_Upgrade_MyMigration3.cs
  • .....
  • 2018XXXX_Upgrade_MyMigrationX.cs

I would like to merge MyMigration1 to MyMigrationX in one migration (and keep ABP migrations).

How to deal it with ContextModelSnapshot file ?

Thanks


1 Answer(s)
  • User Avatar
    1
    maliming created
    Support Team

    I think removing the migration and re-adding it can be merged.