Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Callback for finished migration #188

Open
crizzis opened this issue May 27, 2021 · 0 comments
Open

Callback for finished migration #188

crizzis opened this issue May 27, 2021 · 0 comments

Comments

@crizzis
Copy link

crizzis commented May 27, 2021

Currently, we can use the callback parameter to Set.up(...) to perform cleanup (e.g. close DB connection).

This does not, however, cover the case when the migration has been performed using the cmdline (if such an option exists, it is undocumented).

It would be nice to be able to specify a 'callback' JS file for when the migration is finished (probably also for when the migration is about to start). Perhaps using the EventEmitter API?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant