Skip to content

feat: add user_favorite migration for favorite heritages join table - #560

Merged
zigzagdev merged 2 commits into
feat/user-favoritefrom
feat/user-favorite_domain-layer
Aug 3, 2026
Merged

feat: add user_favorite migration for favorite heritages join table#560
zigzagdev merged 2 commits into
feat/user-favoritefrom
feat/user-favorite_domain-layer

Conversation

@zigzagdev

Copy link
Copy Markdown
Owner

Summary

  • ユーザーがお気に入り登録した世界遺産を管理するための user_favorite 中間テーブルを追加
  • users / world_heritage_sites への外部キー制約(cascadeOnDelete)を設定
  • user_id + world_heritage_site_id の複合ユニーク制約により、同一ユーザー・同一遺産の重複登録を防止

Changes

  • database/migrations/2026_08_01_000000_create_user_favorite_table.php を追加
  • .gitignoresrc/.config/(psyshのローカルキャッシュ)を追加

Test plan

  • php artisan migrate でマイグレーションが正常に実行されることを確認
  • php artisan migrate:rollback でロールバックできることを確認

@codecov

codecov Bot commented Aug 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 62.90%. Comparing base (9c6c1d1) to head (66cd289).

Additional details and impacted files

Impacted file tree graph

@@                  Coverage Diff                  @@
##             feat/user-favorite     #560   +/-   ##
=====================================================
  Coverage                 62.90%   62.90%           
  Complexity                 1622     1622           
=====================================================
  Files                       136      136           
  Lines                      8410     8410           
=====================================================
  Hits                       5290     5290           
  Misses                     3120     3120           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@zigzagdev zigzagdev left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

OK

@zigzagdev
zigzagdev merged commit 8792bd7 into feat/user-favorite Aug 3, 2026
16 checks passed
@zigzagdev
zigzagdev deleted the feat/user-favorite_domain-layer branch August 3, 2026 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: implement Domain layer for Favorite Heritage API / お気に入りAPIのDomain層実装

1 participant