agrosner/DBFlow

Is there a way to know migration is completed

nithin-aktivolabs opened this issue · 2 comments

Is there a way to know migration is completed

DBFlow Version: 4.1.2

Feature Request: Migration callback

Description:
I have a DB and run an initial database set up in version 0. Now, my scenario is, I want to notify once the migration is completed. Is there any way in DBFlow to see the migration is completed?

You can use the onPostMigration method on your migration class. or in the body of the migrate method and just use a stream or event bus to notify subscribers. There isn't a notification system for migrations built into DBFlow.

thanks aGrosner