invoiceninja/database/migrations/2021_05_05_014713_activate_we_pay.php
2021-05-05 14:29:58 +10:00

31 lines
537 B
PHP

<?php
use App\Models\Gateway;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class ActivateWePay extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
if(Gateway::count() >=1)
Gateway::whereIn('id', [49])->update(['visible' => true]);
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}