<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\DB;

return new class extends Migration
{
    public function up(): void
    {
        $relabel = [
            'login_stat_teams_value'      => 'Stat value · teams',
            'login_stat_members_value'    => 'Stat value · members',
            'login_stat_weeks_value'      => 'Stat value · weeks',
            'login_stat_activities_value' => 'Stat value · activities',
        ];
        foreach ($relabel as $key => $label) {
            DB::table('site_settings')->where('key', $key)->update(['label' => $label]);
        }
    }

    public function down(): void {}
};
