Skip to content

Feature#1799

Merged
ma91n merged 2 commits intomainfrom
feature
Apr 10, 2026
Merged

Feature#1799
ma91n merged 2 commits intomainfrom
feature

Conversation

@ma91n
Copy link
Copy Markdown
Collaborator

@ma91n ma91n commented Apr 10, 2026

No description provided.

@ma91n ma91n self-assigned this Apr 10, 2026

ベースラインを「どのバージョンで作成するか」を決めるのが `baselineVersion` です。**デフォルト値は `"1"` です。**

つまり `baselineOnMigrate(true)` を指定すると:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [textlint] <eslint.rules.ja-technical-writing/ja-no-mixed-period> reported by reviewdog 🐶
文末が"。"で終わっていません。
理由: 句点は文の境界を明確にし、読み手の理解を助けます
修正: 適切な文末表現で文を完結させ、句点を追加してください
例: 「〜です。」「〜ます。」「〜でした。」など (ja-technical-writing/ja-no-mixed-period)

2. **`baselineOnMigrate(true)` は既存スキーマへの Flyway 後付け導入用**。V1 は「現在のスキーマ状態」を記録する全DDLを配置し、実際の差分マイグレーションは V2 から開始する
3. **`@ConditionalOnProperty` で Bean 単位の有効/無効切り替え**が可能。`matchIfMissing = true` により、無効にしたい環境だけ `false` を指定すればよい

特に 2 は Flyway のドキュメントを読んでいても見落としがちなポイントだと感じました。`baselineOnMigrate` の意味を正しく理解せずに V1 に差分DDLを書いてしまうと、既存環境ではスキップされ、新規環境でしか実行されないという事態になります。
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [textlint] <eslint.rules.ja-technical-writing/no-doubled-joshi> reported by reviewdog 🐶
一文に二回以上利用されている助詞 "に" がみつかりました。

次の助詞が連続しているため、文を読みにくくしています。

  • "に"
  • "に"

同じ助詞を連続して利用しない、文の中で順番を入れ替える、文を分割するなどを検討してください。
(ja-technical-writing/no-doubled-joshi)

@ma91n ma91n merged commit 8b38918 into main Apr 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant