1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Only show implemented gateways

This commit is contained in:
David Bomba 2020-09-28 08:00:14 +10:00
parent fd67a48c91
commit 604827f551
2 changed files with 32 additions and 1 deletions

View File

@ -51,7 +51,7 @@ ERROR_EMAIL=
NINJA_ENVIRONMENT=selfhost
PHANTOMJS_KEY=
PHANTOMJS_CLOUD_KEY='a-demo-key-with-low-quota-per-ip-address'
PHANTOMJS_SECRET=
SELF_UPDATER_REPO_VENDOR = invoiceninja

View File

@ -0,0 +1,31 @@
<?php
use App\Models\Gateway;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class UpdateGatewayTableVisibleColumn extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Gateway::query()->update(['visible' => 0]);
Gateway::whereIn('id', [1,15,20,39])->update(['visible' => 1]);
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}