From bcd0f580cbee5bdcde6563aa91f766321faf9b09 Mon Sep 17 00:00:00 2001 From: Anton Komarev Date: Sun, 8 Jan 2023 14:21:49 +0300 Subject: [PATCH] Upgrade guide --- UPGRADING.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/UPGRADING.md b/UPGRADING.md index 1fad5635..d939c85a 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -11,6 +11,8 @@ Release v9 has new Eloquent model local scopes approach described in ([#226](https://github.com/cybercog/laravel-love/discussions/226#discussioncomment-4612667)). +### Scopes breaking changes + Reactable trait methods `scopeWhereReactedBy`, `scopeWhereNotReactedBy`, `scopeJoinReactionCounterOfType`, `scopeJoinReactionTotal` were moved to `ReactableEloquentBuilderTrait`. @@ -37,6 +39,17 @@ class UserEloquentBuilder extends \Illuminate\Database\Eloquent\Builder } ``` +### Console commands breaking changes + +Command `love:recount` does not use `sync` connection by default now. +It uses `queue.default` config value. + +To force run synchronous statistics recount use `--queue-connection=sync` option. + +```shell +php artisan love:recount --model="App\User" --queue-connection=sync +``` + ## From v7 to v8 - All `weight` values are `float` now. Round them to get `integer` values as it was before