Skip to content

Firefly III: a personal finances manager

Fix #11750

James Coledad596dc2648
diff --git a/app/Listeners/System/RecalculatesPrimaryCurrencyAmounts.php b/app/Listeners/System/RecalculatesPrimaryCurrencyAmounts.php
index 184e093eb7..535bc89228 100644
--- a/app/Listeners/System/RecalculatesPrimaryCurrencyAmounts.php
+++ b/app/Listeners/System/RecalculatesPrimaryCurrencyAmounts.php
@@ -150,9 +150,6 @@ class RecalculatesPrimaryCurrencyAmounts
->where('transaction_journals.user_group_id', $userGroup->id)
->where(static function (Builder $q): void {
$q->whereNotNull('native_amount')->orWhereNotNull('native_foreign_amount');
- if ('pgsql' !== config('database.default')) {
- $q->orWhere('native_amount', '!=', '')->orWhere('native_foreign_amount', '!=', '');
- }
})
->update(['native_amount' => null, 'native_foreign_amount' => null])
;