1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-13 22:54:25 +01:00
invoiceninja/database/migrations/2024_09_06_042040_cba_powerboard.php
2024-09-09 16:28:56 +10:00

50 lines
1.1 KiB
PHP

<?php
use App\Models\Gateway;
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Model::unguard();
$fields = new \stdClass();
$fields->publicKey = '';
$fields->secretKey = '';
// $fields->applicationId = '';
// $fields->locationId = '';
$fields->testMode = false;
$fields->Threeds = false;
$powerboard = new Gateway();
$powerboard->id = 64;
$powerboard->name = 'CBA PowerBoard';
$powerboard->provider = 'CBAPowerBoard';
$powerboard->key = 'b67581d804dbad1743b61c57285142ad';
$powerboard->sort_order = 4543;
$powerboard->is_offsite = false;
$powerboard->visible = true;
$powerboard->fields = json_encode($fields);
$powerboard->save();
}
/**
* Reverse the migrations.
*/
public function down(): void
{
//
}
};