Watching additional sql files (referenced in afterCurrent)

オープン
#209 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
38/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
postgresql, sql, typescript
領域
cli, databases

調査の方向性

graphile-migrate の watch コマンドと、.gmrc の afterCurrent フィールドがどのように処理されるかから始めます。この issue では実装ファイルやテストは指定されていません。現在のマイグレーションへの編集によって再実行がトリガーされる仕組みを追跡し、その後、追加の seed.sql がどのように関与すべきかを判断します。watch の実行中に参照される SQL ファイルを編集すると現在のマイグレーションが再実行され、データベースが更新されることが完了の条件です。

索引モデルが 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 はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

graphile/migrate のほかの issue

graphile/migrate の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。