mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-04 18:04:36 -04:00
Adjust custom gateway labels
This commit is contained in:
parent
77b97a7195
commit
6a15c72f45
@ -136,7 +136,6 @@ class AddMoreCustomFields extends Migration
|
||||
$table->string('ip')->nullable();
|
||||
});
|
||||
|
||||
DB::statement('UPDATE gateways SET provider = "Custom1" WHERE id = 62');
|
||||
DB::statement('UPDATE gateway_types SET alias = "custom1", name = "Custom 1" WHERE id = 6');
|
||||
}
|
||||
|
||||
|
@ -14,18 +14,18 @@ class GatewayTypesSeeder extends Seeder
|
||||
['alias' => 'paypal', 'name' => 'PayPal'],
|
||||
['alias' => 'bitcoin', 'name' => 'Bitcoin'],
|
||||
['alias' => 'dwolla', 'name' => 'Dwolla'],
|
||||
['alias' => 'custom1', 'name' => 'Custom 1'],
|
||||
['alias' => 'custom1', 'name' => 'Custom'],
|
||||
['alias' => 'alipay', 'name' => 'Alipay'],
|
||||
['alias' => 'sofort', 'name' => 'Sofort'],
|
||||
['alias' => 'sepa', 'name' => 'SEPA'],
|
||||
['alias' => 'gocardless', 'name' => 'GoCardless'],
|
||||
['alias' => 'apple_pay', 'name' => 'Apple Pay'],
|
||||
['alias' => 'custom2', 'name' => 'Custom 2'],
|
||||
['alias' => 'custom3', 'name' => 'Custom 3'],
|
||||
['alias' => 'custom2', 'name' => 'Custom'],
|
||||
['alias' => 'custom3', 'name' => 'Custom'],
|
||||
];
|
||||
|
||||
foreach ($gateway_types as $gateway_type) {
|
||||
$record = GatewayType::where('name', '=', $gateway_type['name'])->first();
|
||||
$record = GatewayType::where('alias', '=', $gateway_type['alias'])->first();
|
||||
if (! $record) {
|
||||
GatewayType::create($gateway_type);
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user