<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration {
    public function up(): void
    {
        Schema::table('video_sources', function (Blueprint $table) {
            $table->boolean('is_hevc')->default(false)->after('type');
            $table->timestamp('hevc_checked_at')->nullable()->after('is_hevc');
        });
    }

    public function down(): void
    {
        Schema::table('video_sources', function (Blueprint $table) {
            $table->dropColumn(['is_hevc', 'hevc_checked_at']);
        });
    }
};
