Closed ju-ki closed 2 months ago
この変更は、バックエンドサービスのGitHub ActionsワークフローにMySQLテストデータベースを統合し、環境特有の設定を管理するための改善をもたらします。新しいマイグレーションファイルも追加され、ユーザー生成コンテンツの管理が強化されます。全体として、テスト環境の設定とデータベース管理の信頼性が向上しました。
ファイル | 変更の概要 |
---|---|
.github/workflows/blog-site.yml |
MySQLサービス追加、環境変数設定、dockerize のインストールとデータベース接続設定更新。 |
backend/.gitignore |
.env.testing の追加により、テスト環境ファイルをGitから無視。 |
backend/config/database.php |
データベース設定変更、mysql_testing セクションの追加、照合設定の変更。 |
backend/config/logging.php |
ログファイル名に日付を追加する設定変更。 |
backend/database/factories/UserFactory.php |
User モデルとの関連付けを明確化。 |
backend/database/migrations/... |
新しいテーブル作成のためのマイグレーションファイルを追加(posts, comments, categories, tags, likes, views, post_tag)。 |
backend/tests/... |
DatabaseConnectionTest とUserTest を追加し、データベース接続とユーザー機能をテスト。 |
docker-compose.yml |
テスト用MySQLサービスtest-db を追加、依存関係設定をコメントアウト。 |
sequenceDiagram
participant User
participant Backend
participant MySQL
User->>Backend: リクエスト送信
Backend->>MySQL: データ取得
MySQL-->>Backend: データを返す
Backend-->>User: レスポンスを返す
🐰 うさぎの祝いの詩 🐰
バックエンドの変化、嬉しいお知らせ、
MySQLの友達、テストも管理。
新しいテーブル、投稿とコメント、
みんなのデータ、しっかり守る。
うさぎのように、素早く跳ね、
変化を楽しむ、喜びの舞。 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
@coderabbitai review
This PR is automatically created by GitHub Actions
Summary by CodeRabbit
posts
、comments
、categories
、tags
、likes
、views
テーブルを作成し、ユーザー生成コンテンツの管理を強化しました。post_tag
テーブルを追加しました。