<?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('phases', function (Blueprint $table) {
            // actual_start and actual_end already exist
            $table->date('baseline_start')->nullable()->after('actual_end');
            $table->date('baseline_end')->nullable()->after('baseline_start');
        });
    }

    public function down(): void
    {
        Schema::table('phases', function (Blueprint $table) {
            $table->dropColumn(['baseline_start', 'baseline_end']);
        });
    }
};
