mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
25 lines
542 B
PHP
25 lines
542 B
PHP
<?php
|
|
|
|
use App\Models\Gateway;
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
return new class 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();
|
|
}
|
|
}
|
|
};
|