Skip to content
This repository was archived by the owner on Jan 20, 2024. It is now read-only.

Make node-flywaydb callable from JavaScript#50

Open
sameer-hashflow wants to merge 5 commits intomarkgardner:masterfrom
sameer-hashflow:sameer/make-callable-from-js-2
Open

Make node-flywaydb callable from JavaScript#50
sameer-hashflow wants to merge 5 commits intomarkgardner:masterfrom
sameer-hashflow:sameer/make-callable-from-js-2

Conversation

@sameer-hashflow
Copy link

We want to be able to run migrations directly from javascript so that we can run our migrations to setup our embedded test databases. This change refactors the code to make that possible and exposes a 'migrate' function which takes a config object and runs migrate with that config object. This could be easily expanded to expose more functions, like 'baseline' in a similar way.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant