Watching additional sql files (referenced in afterCurrent)

未关闭
#209 1 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
38/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
postgresql, sql, typescript
领域
cli, databases

调研方向

从 graphile-migrate 的 watch 命令以及 .gmrc 中 afterCurrent 字段的处理方式开始;该 issue 未指定实现文件或测试。跟踪对当前 migration 的编辑如何触发重新运行,然后确定额外的 seed.sql 应如何参与。完成的标准是:在 watch 运行期间编辑被引用的 SQL 文件,会重新运行当前 migration 并更新数据库。

由索引模型根据 Issue 内容生成。

描述

enhancement
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?

主要语言
TypeScript
星标
836
派生
71
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

graphile/migrate 的其他 Issue

查看 graphile/migrate 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。