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

Request: consolidate/merge migrations for major releases. #6903


User avatar
0
TimMackey created

Is there a way for ANZ to consolidate/merge ANZ and Abp migrations periodically into a single migration (or one each for ANZ and Abp) for major releases going forward? i.e. 7.0.0, 8.0.0, etc.

My project currently has 60 merges between ANZ, Abp, and my own. I plan to merge my migrations to a single "Initial" migration as soon as my initial development phase has completed. Would like to keep the number of migration files to a minimum by merging migrations on a release schedule.

Can this be done? How might consolidated migrations be applied to the db once the app has been put into production?

Thank you.


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

    You can delete all migrations at any time during development and then use a new migration (and maybe even delete, create a new database)

    But once the application is released for production, you can't do it easily. You'd better use migration to update the database.

    Of course, the Zero upgrade will not have a lot of database migration.