Fixes misnamed tag for Sponge servers. closes #237
This commit is contained in:
parent
06bdadb92f
commit
759ebd3ad0
2 changed files with 43 additions and 1 deletions
|
@ -0,0 +1,42 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
|
||||||
|
class FixMisnamedOptionTag extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
DB::transaction(function () {
|
||||||
|
DB::table('service_options')->where([
|
||||||
|
['name', 'Sponge (SpongeVanilla)'],
|
||||||
|
['tag', 'spigot'],
|
||||||
|
['docker_image', 'quay.io/pterodactyl/minecraft:sponge'],
|
||||||
|
])->update([
|
||||||
|
'tag' => 'sponge',
|
||||||
|
]);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function down()
|
||||||
|
{
|
||||||
|
DB::table('service_options')->where([
|
||||||
|
['name', 'Sponge (SpongeVanilla)'],
|
||||||
|
['tag', 'sponge'],
|
||||||
|
['docker_image', 'quay.io/pterodactyl/minecraft:sponge'],
|
||||||
|
])->update([
|
||||||
|
'tag' => 'spigot',
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
}
|
|
@ -90,7 +90,7 @@ class MinecraftServiceTableSeeder extends Seeder
|
||||||
'parent_service' => $this->service->id,
|
'parent_service' => $this->service->id,
|
||||||
'name' => 'Sponge (SpongeVanilla)',
|
'name' => 'Sponge (SpongeVanilla)',
|
||||||
'description' => 'SpongeVanilla is the SpongeAPI implementation for Vanilla Minecraft.',
|
'description' => 'SpongeVanilla is the SpongeAPI implementation for Vanilla Minecraft.',
|
||||||
'tag' => 'spigot',
|
'tag' => 'sponge',
|
||||||
'docker_image' => 'quay.io/pterodactyl/minecraft:sponge',
|
'docker_image' => 'quay.io/pterodactyl/minecraft:sponge',
|
||||||
'executable' => null,
|
'executable' => null,
|
||||||
'startup' => null,
|
'startup' => null,
|
||||||
|
|
Loading…
Reference in a new issue