feat: add user_favorite migration for favorite heritages join table - #560
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ 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:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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を追加.gitignoreにsrc/.config/(psyshのローカルキャッシュ)を追加Test plan
php artisan migrateでマイグレーションが正常に実行されることを確認php artisan migrate:rollbackでロールバックできることを確認