1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-10-27 20:32:28 +01:00
Pterodactyl-Panel/database/migrations/2016_09_29_213518_rename_double_insurgency.php
2016-09-29 21:40:53 -04:00

35 lines
679 B
PHP

<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Pterodactyl\Models\ServiceOptions;
class RenameDoubleInsurgency extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
$model = ServiceOptions::where('parent_service', 2)->where('id', 3)->where('name', 'Insurgency')->first();
if ($model) {
$model->name = 'Team Fortress 2';
$model->save();
}
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}