graphile / migrate

Opinionated SQL-powered productive roll-forward migration tool for PostgreSQL.
MIT License
751 stars 58 forks source link

fix(run): when ran from action, use GM_DBURL if appropriate #86

Closed benjie closed 4 years ago

benjie commented 4 years ago

run might be called from an action; in this case DATABASE_URL will be unavailable (overwritten with postgres://PLEASE:USE@GM_DBURL/INSTEAD) to avoid ambiguity (so we don't accidentally run commands against the main database when it was the shadow database that triggered the action). In this case, unless stated otherwise, the user would want to run against whatever database was just modified, so we automatically use GM_DBURL in this case.

Also fixes missing @types/node

Fixes #80