graphile / graphile/migrate

Watching additional sql files (referenced in afterCurrent)

Open
#209 1 comment 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
835
Forks
64
Avg merge
17m
Merged PRs (30d)
5

Description

### Summary

In the project I work on, we have a "seed.sql" included in `afterCurrent` field of the `.gmrc` config file.

The seed.sql contains testing data that I need to edit from time to time. When I edit it, and I have `graphile-migrate watch` running, it would be very handy if the current migration run again (like if the current migration was edited), and the seed data updated in database. My workaround is to actually edit the current migration by adding "select 1" there and then removing it :)

Is there a way to specify that `watch` command should also watch some additional files?

If there isn't a way, would it be a good opportunity for me to try to add it and submit PR?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.