From 604827f5511038b7fc51628dc12b0edff256e933 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 28 Sep 2020 08:00:14 +1000 Subject: [PATCH] Only show implemented gateways --- .env.example | 2 +- ...00_update_gateway_table_visible_column.php | 31 +++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 database/migrations/2020_09_27_215800_update_gateway_table_visible_column.php diff --git a/.env.example b/.env.example index 377939c6d2c9..63f81969dae6 100644 --- a/.env.example +++ b/.env.example @@ -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 diff --git a/database/migrations/2020_09_27_215800_update_gateway_table_visible_column.php b/database/migrations/2020_09_27_215800_update_gateway_table_visible_column.php new file mode 100644 index 000000000000..66558cbb13fa --- /dev/null +++ b/database/migrations/2020_09_27_215800_update_gateway_table_visible_column.php @@ -0,0 +1,31 @@ +update(['visible' => 0]); + + Gateway::whereIn('id', [1,15,20,39])->update(['visible' => 1]); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + // + } +}