1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-19 16:01:34 +02:00

Fix for migration

This commit is contained in:
Hillel Coren 2018-04-25 09:41:55 +03:00
parent 7d44f3d1a3
commit 181fc44a2d

View File

@ -26,7 +26,10 @@ class GatewayTypesSeeder extends Seeder
foreach ($gateway_types as $gateway_type) {
$record = GatewayType::where('alias', '=', $gateway_type['alias'])->first();
if (! $record) {
if ($record) {
$record->fill($gateway_type);
$record->save();
} else {
GatewayType::create($gateway_type);
}
}