agrosner / DBFlow

A blazing fast, powerful, and very simple ORM android database library that writes database code for you.
MIT License
4.87k stars 598 forks source link

Is there a way to know migration is completed #1702

Closed nithin-aktivolabs closed 3 years ago

nithin-aktivolabs commented 4 years ago

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 3 years ago

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 3 years ago

thanks aGrosner