mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Fixes for site_url on gateways table
This commit is contained in:
parent
1a4d2a4460
commit
836e9a0ed4
@ -17,8 +17,11 @@ class UpdateGatewayTableVisibleColumn extends Migration
|
||||
Gateway::query()->update(['visible' => 0]);
|
||||
|
||||
Gateway::whereIn('id', [1,15,20,39])->update(['visible' => 1]);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
@ -81,5 +81,16 @@ class PaymentLibrariesSeeder extends Seeder
|
||||
Gateway::create($gateway);
|
||||
}
|
||||
}
|
||||
|
||||
Gateway::query()->update(['visible' => 0]);
|
||||
|
||||
Gateway::whereIn('id', [1,15,20,39])->update(['visible' => 1]);
|
||||
|
||||
Gateway::all()->each(function ($gateway){
|
||||
|
||||
$gateway->site_url = $gateway->getHelp();
|
||||
$gateway->save();
|
||||
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user