1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-11-22 00:52:43 +01:00
Pterodactyl-Panel/database/migrations/2016_09_29_213518_rename_double_insurgency.php
Lance Pioch 3bf5a71802
PostgreSQL Support (#4486)
Co-authored-by: Matthew Penner <matthew@pterodactyl.io>
2022-11-25 13:29:04 -07:00

28 lines
589 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
class RenameDoubleInsurgency extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
DB::transaction(function () {
$model = DB::table('service_options')->where('parent_service', 2)->where('id', 3)->where('name', 'Insurgency')->first();
if ($model) {
$model->name = 'Team Fortress 2';
$model->save();
}
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
}
}