2016-09-30 03:40:53 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
|
|
|
|
class RenameDoubleInsurgency extends Migration
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Run the migrations.
|
|
|
|
*/
|
2022-11-25 21:29:04 +01:00
|
|
|
public function up(): void
|
2016-09-30 03:40:53 +02:00
|
|
|
{
|
2016-10-31 22:15:30 +01:00
|
|
|
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();
|
|
|
|
}
|
|
|
|
});
|
2016-09-30 03:40:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Reverse the migrations.
|
|
|
|
*/
|
2022-11-25 21:29:04 +01:00
|
|
|
public function down(): void
|
2016-09-30 03:40:53 +02:00
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|