mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 06:43:45 +02:00
Fix issue that would prevent Ark servers from being added to servers.
Renamed migration file to force it to re-run on previously migrated systems.
This commit is contained in:
@@ -4,7 +4,7 @@ use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class AddArkServiceOption extends Migration
|
||||
class AddArkServiceOptionFixed extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
@@ -15,10 +15,17 @@ class AddArkServiceOption extends Migration
|
||||
{
|
||||
DB::transaction(function () {
|
||||
$service = DB::table('services')->select('id')->where('author', 'ptrdctyl-v040-11e6-8b77-86f30ca893d3')->where('name', 'Source Engine')->first();
|
||||
|
||||
// No SRCDS Service, Skipping
|
||||
if (!$service) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Already have this service option installed.
|
||||
if (DB::table('service_options')->select('id')->where('name', 'Ark: Survival Evolved')->where('parent_service', $service->id)->first()) {
|
||||
return;
|
||||
}
|
||||
|
||||
$oid = DB::table('service_options')->insertGetId([
|
||||
'parent_service' => $service->id,
|
||||
'name' => 'Ark: Survival Evolved',
|
||||
Reference in New Issue
Block a user