Fixes for gateway migration
This commit is contained in:
parent
cdb8bfef73
commit
07c57e1361
|
|
@ -22,6 +22,8 @@ return new class extends Migration
|
||||||
|
|
||||||
$gateway = \App\Models\Gateway::where('key','b9886f9257f0c6ee7c302f1c74475f6c')->first();
|
$gateway = \App\Models\Gateway::where('key','b9886f9257f0c6ee7c302f1c74475f6c')->first();
|
||||||
|
|
||||||
|
if($gateway)
|
||||||
|
{
|
||||||
$fields = json_decode($gateway->fields);
|
$fields = json_decode($gateway->fields);
|
||||||
$fields->verifyBankAccount = false;
|
$fields->verifyBankAccount = false;
|
||||||
$gateway->fields = json_encode($fields);
|
$gateway->fields = json_encode($fields);
|
||||||
|
|
@ -29,7 +31,7 @@ return new class extends Migration
|
||||||
$gateway->save();
|
$gateway->save();
|
||||||
|
|
||||||
\Illuminate\Support\Facades\Cache::forget('gateways');
|
\Illuminate\Support\Facades\Cache::forget('gateways');
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue