From f59bae9518e18dc5b37a60847ffc24e6857a6af9 Mon Sep 17 00:00:00 2001 From: harshjagad20 Date: Fri, 17 Dec 2021 13:30:02 +0530 Subject: [PATCH] solve condition for payments migration --- ...021_12_13_055813_calculate_base_amount_of_payments_table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/migrations/2021_12_13_055813_calculate_base_amount_of_payments_table.php b/database/migrations/2021_12_13_055813_calculate_base_amount_of_payments_table.php index 24cb8da8..737a5dd8 100644 --- a/database/migrations/2021_12_13_055813_calculate_base_amount_of_payments_table.php +++ b/database/migrations/2021_12_13_055813_calculate_base_amount_of_payments_table.php @@ -12,7 +12,7 @@ class CalculateBaseAmountOfPaymentsTable extends Migration */ public function up() { - $payments = Payment::all(); + $payments = Payment::where('exchange_rate', '<>', null)->get(); if ($payments) { foreach ($payments as $payment) {