mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 10:24:31 -04:00
Fix for migration
This commit is contained in:
parent
ea47f2e1f7
commit
fdab8c6524
@ -26,7 +26,10 @@ class GatewayTypesSeeder extends Seeder
|
|||||||
|
|
||||||
foreach ($gateway_types as $gateway_type) {
|
foreach ($gateway_types as $gateway_type) {
|
||||||
$record = GatewayType::where('alias', '=', $gateway_type['alias'])->first();
|
$record = GatewayType::where('alias', '=', $gateway_type['alias'])->first();
|
||||||
if (! $record) {
|
if ($record) {
|
||||||
|
$record->fill($gateway_type);
|
||||||
|
$record->save();
|
||||||
|
} else {
|
||||||
GatewayType::create($gateway_type);
|
GatewayType::create($gateway_type);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user