From 759ebd3ad044187cf186dcc30ce39d710d428833 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Tue, 3 Jan 2017 15:06:40 -0500 Subject: [PATCH] Fixes misnamed tag for Sponge servers. closes #237 --- ...7_01_03_150436_fix_misnamed_option_tag.php | 42 +++++++++++++++++++ .../seeds/MinecraftServiceTableSeeder.php | 2 +- 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 database/migrations/2017_01_03_150436_fix_misnamed_option_tag.php diff --git a/database/migrations/2017_01_03_150436_fix_misnamed_option_tag.php b/database/migrations/2017_01_03_150436_fix_misnamed_option_tag.php new file mode 100644 index 000000000..96b761497 --- /dev/null +++ b/database/migrations/2017_01_03_150436_fix_misnamed_option_tag.php @@ -0,0 +1,42 @@ +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', + ]); + } +} diff --git a/database/seeds/MinecraftServiceTableSeeder.php b/database/seeds/MinecraftServiceTableSeeder.php index 4b33d8957..e0df5b36c 100644 --- a/database/seeds/MinecraftServiceTableSeeder.php +++ b/database/seeds/MinecraftServiceTableSeeder.php @@ -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,