<?php

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

// ══════════════════════════════════════════════════════════════════
//  InPractice — Add LinkedIn URL to Freelance Profiles
//
//  LinkedIn profile link is the primary trust signal for new
//  freelancers who have zero reviews yet. Optional field —
//  showing the LinkedIn icon on a profile card signals the person
//  is real enough to have a public professional presence.
//
//  All external URLs go through /go?url= redirect warning page.
// ══════════════════════════════════════════════════════════════════

return new class extends Migration
{
    public function up(): void
    {
        Schema::table('freelance_profiles', function (Blueprint $table) {
            $table->string('linkedin_url')->nullable()->after('is_active');
        });
    }

    public function down(): void
    {
        Schema::table('freelance_profiles', function (Blueprint $table) {
            $table->dropColumn('linkedin_url');
        });
    }
};
