Closed wevre closed 2 years ago
I'd be open to this, another approach could be to have an optional vector syntax for up-fn
, e.g: :up-fn [migrate-up "hello-with-args.txt" "Hello, world, with args!"]
. Might be a bit more readable. If you'd be up to do a pr I'd be happy to help get that in.
Just submitted a PR.
Thanks, looks good and just pushed out 1.4.3 with the feature.
Could we have additional args in the config map that will be passed to
:up-fn
and:down-fn
? Something like this:With custom args, the code-based migrations could potentially share namespaces and migration functions.