mirror of
https://github.com/pterodactyl/panel.git
synced 2024-11-22 17:12:30 +01:00
Fixes misnamed tag for Sponge servers. closes #237
This commit is contained in:
parent
06bdadb92f
commit
759ebd3ad0
@ -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,
|
||||
'name' => 'Sponge (SpongeVanilla)',
|
||||
'description' => 'SpongeVanilla is the SpongeAPI implementation for Vanilla Minecraft.',
|
||||
'tag' => 'spigot',
|
||||
'tag' => 'sponge',
|
||||
'docker_image' => 'quay.io/pterodactyl/minecraft:sponge',
|
||||
'executable' => null,
|
||||
'startup' => null,
|
||||
|
Loading…
Reference in New Issue
Block a user