Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/database/migrations/2016_09_29_213518_rename_double_insurgency.php
7460 views
1
<?php
2
3
use Illuminate\Database\Migrations\Migration;
4
5
class RenameDoubleInsurgency extends Migration
6
{
7
/**
8
* Run the migrations.
9
*/
10
public function up(): void
11
{
12
DB::transaction(function () {
13
$model = DB::table('service_options')->where('parent_service', 2)->where('id', 3)->where('name', 'Insurgency')->first();
14
if ($model) {
15
$model->name = 'Team Fortress 2';
16
$model->save();
17
}
18
});
19
}
20
21
/**
22
* Reverse the migrations.
23
*/
24
public function down(): void
25
{
26
}
27
}
28
29