Is there a way to know migration is completed
nithin-aktivolabs opened this issue · 2 comments
nithin-aktivolabs commented
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?
agrosner commented
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.
nithin-aktivolabs commented
thanks aGrosner