-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
how to use with graphile-worker #178
Comments
It probably makes sense to add it to
Shouldn't do; it's never broken my migrations and we've changed the signature of |
I've moved this to the (more relevant) migrate repo. |
A yes For some reason I didn't think to look in the graphle-migrate readme. Now that I have there is an example with {
"afterReset": [
"afterReset.sql",
{ "_": "command", "command": "npx --no-install graphile-worker --once" }
],
} Which makes the same mistake I had made and uses The stuff with the envvars is because {
"afterReset": [
"afterReset.sql",
],
"beforeAllMigrations": [
{ "_": "command", "command": "npx --no-install graphile-worker --schema-only -c \"$GM_DBURL\"" }
],
} I used the The proper fix would be to eiter let graphile-worker use Thanks for the quick reply and soothing my worries about future compatibility. |
It'd probably make sense to give the {
"_": "command",
"command": "npx --no-install graphile-worker --schema-only",
"env": {
// Regular envvars, state verbatim
"SOMETHING": "123456",
// Source the value for this `DATABASE_URL` envvar from `$GM_DBURL`
"DATABASE_URL": {"from": "GM_DBURL"}
}
} And yes, that Do you fancy taking any of this on? I think the |
Summary
I am using graphile-worker and am unsure how to mesh them together
seems to get the job done but is this future proof or is there a better way?
If for example i have the following migration
and in the future graphile-worker changes
add_job
orjobs
would the migration fail? is there a way around it?Either way mentioning the way to integrate with graphile-worker in the readme would be nice.
The text was updated successfully, but these errors were encountered: