<?php

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

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        DB::table('languages')->insertOrIgnore([
            'name' => 'Русский',
            'code' => 'ru',
            'flag' => 'ru',
            'is_rtl' => false,
            'status' => 'active',
            'created_at' => now(),
            'updated_at' => now(),
        ]);
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        DB::table('languages')->where('code', 'ru')->delete();
    }
};
