invoiceninja/database/migrations/2021_09_05_101209_update_braintree_gateway.php
2021-09-05 12:12:59 +02:00

26 lines
553 B
PHP

<?php
use App\Models\Gateway;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class UpdateBraintreeGateway extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
if ($gateway = Gateway::find(50)) {
$fields = json_decode($gateway->fields);
$fields->merchantAccountId = '';
$gateway->fields = json_encode($fields);
$gateway->save();
}
}
}