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

Allow to pass storage object to Umzug constructor #77

Closed
koistya opened this issue May 19, 2016 · 2 comments
Closed

Allow to pass storage object to Umzug constructor #77

koistya opened this issue May 19, 2016 · 2 comments
Milestone

Comments

@koistya
Copy link

koistya commented May 19, 2016

class Storage {
  constructor() { ... }
  logMigration() { ... }
  unlogMigration() { ... }
  executed() { ... }
}

const umzug = new Umzug({ storage: Storage });
@jukkah
Copy link
Contributor

jukkah commented May 19, 2016

Hmm... Why not? 👍 Pull request is more than welcome!

@jukkah jukkah added this to the 2.0 milestone Sep 9, 2016
@randomstuff
Copy link

Is it useful to pass the storage class instead of the storage instance? I'd want to do that instead:

const umzug = new Umzug({ storage: new Storage() });

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

No branches or pull requests

3 participants