yogthos / migratus

MIGRATE ALL THE THINGS!
640 stars 95 forks source link

Specify up/down migrate functions with optional args #228

Closed wevre closed 1 year ago

wevre commented 1 year ago

The up/down migration function entries in a code-based migration file can optionally be a vector syntax, e.g. {..., :up-fn [migrate-up "arg1" :arg2], ...}, where the additional args will be passed to the migration function after the config map.

yogthos commented 1 year ago

Thanks, looks good but I'm noticing a test is failing now. Actually, that looks unrelated to the pr. It's my local docker setup, so I think we're good.