Skip to content

Commit 181b1d1

Browse files
committed
Complete fixing of improperly named tf2 in db
1 parent a9d0b4a commit 181b1d1

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?php
2+
3+
use Illuminate\Support\Facades\Schema;
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Database\Migrations\Migration;
6+
7+
use Pterodactyl\Models\ServiceOptions;
8+
9+
class RenameDoubleInsurgency extends Migration
10+
{
11+
/**
12+
* Run the migrations.
13+
*
14+
* @return void
15+
*/
16+
public function up()
17+
{
18+
$model = ServiceOptions::where('parent_service', 2)->where('id', 3)->where('name', 'Insurgency')->first();
19+
if ($model) {
20+
$model->name = 'Team Fortress 2';
21+
$model->save();
22+
}
23+
}
24+
25+
/**
26+
* Reverse the migrations.
27+
*
28+
* @return void
29+
*/
30+
public function down()
31+
{
32+
//
33+
}
34+
}

0 commit comments

Comments
 (0)