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

Specify up/down migrate functions with optional args #228

Merged
merged 2 commits into from
Aug 28, 2022
Merged

Specify up/down migrate functions with optional args #228

merged 2 commits into from
Aug 28, 2022

Conversation

wevre
Copy link
Contributor

@wevre wevre commented Aug 28, 2022

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.

wevre added 2 commits August 27, 2022 22:30
Allow for a vector of custom args to be associated with the up and down migration functions.
migration functions are a symbol, or a vector of symbol plus extra args.
@yogthos yogthos merged commit 1d11361 into yogthos:master Aug 28, 2022
@wevre wevre deleted the migrate-with-args branch August 28, 2022 15:20
@yogthos
Copy link
Owner

yogthos commented Aug 28, 2022

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.

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

Successfully merging this pull request may close these issues.

2 participants