1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-11-22 09:02:28 +01:00

Fixes misnamed tag for Sponge servers. closes #237

This commit is contained in:
Dane Everitt 2017-01-03 15:06:40 -05:00
parent 06bdadb92f
commit 759ebd3ad0
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53
2 changed files with 43 additions and 1 deletions

View File

@ -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',
]);
}
}

View File

@ -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,