[Configsデータ] 新規インストール時にエラーが発生する問題を修正しました #2294
Merged
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.
概要
新規インストール時、マイグレーション実行後にシーダーが正常に動作せず、500エラーが発生する問題を修正しました。
問題の原因
2025_10_09_160056_add_mail_oauth2_to_configs.phpでconfigsテーブルに直接レコードを挿入していたDefaultConfigsTableSeederの条件if (Configs::count() == 0)が false となり、基本設定が投入されない対応内容
2025_10_29_000000_remove_mail_auth_method_from_migration.phpを追加mail_auth_methodレコードを削除MailAuthMethod::smtpをデフォルト値として動作(コードは既に対応済み)updateOrCreateで自動作成される影響範囲
mail_auth_methodレコードが削除されますが、コードがデフォルト値で動作するため機能に影響なしレビュー完了希望日
できるだけ早く
関連PR/Issues
参考情報
MailServiceProvider.php、SystemManage.phpでは既にgetConfigsValue()の第3引数でデフォルト値を指定済みupdateOrCreateでレコードが作成されるDB変更
なし(マイグレーションによるデータ削除のみ)
チェックリスト