mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-26 02:40:43 -06:00
Fix issue with upgrade.
This commit is contained in:
parent
bf3c74e65f
commit
22bc6d507e
@ -273,7 +273,8 @@ class UpgradeDatabase extends Command
|
|||||||
->whereNull('transactions.deleted_at')
|
->whereNull('transactions.deleted_at')
|
||||||
->groupBy(['transaction_journals.id'])
|
->groupBy(['transaction_journals.id'])
|
||||||
->select(['transaction_journals.id', DB::raw('COUNT(transactions.id) AS t_count')]);
|
->select(['transaction_journals.id', DB::raw('COUNT(transactions.id) AS t_count')]);
|
||||||
$result = DB::table((string)DB::raw('(' . $subQuery->toSql() . ') AS derived'))
|
/** @noinspection PhpStrictTypeCheckingInspection */
|
||||||
|
$result = DB::table(DB::raw('(' . $subQuery->toSql() . ') AS derived'))
|
||||||
->mergeBindings($subQuery->getQuery())
|
->mergeBindings($subQuery->getQuery())
|
||||||
->where('t_count', '>', 2)
|
->where('t_count', '>', 2)
|
||||||
->select(['id', 't_count']);
|
->select(['id', 't_count']);
|
||||||
|
Loading…
Reference in New Issue
Block a user