mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
30 lines
519 B
PHP
30 lines
519 B
PHP
<?php
|
|
|
|
use App\Models\Gateway;
|
|
use App\Utils\Ninja;
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
return new class extends Migration {
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
if (Gateway::count() >= 1 && Ninja::isHosted()) {
|
|
Gateway::query()->whereIn('id', [49])->update(['visible' => true]);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
//
|
|
}
|
|
};
|