<?php

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

return new class extends Migration
{
    /**
     * Retire the legacy oil-prediction pipeline. The new forecasting
     * stack writes to `weekly_forecasts` (Layer 1 ridge) and
     * `llm_overlays` (Layer 4 LLM news scan) instead. Per
     * `docs/superpowers/specs/2026-05-01-prediction-rebuild-design.md`
     * this table and its associated services were due for removal at
     * the end of Phase 4.
     */
    public function up(): void
    {
        Schema::dropIfExists('price_predictions');
    }

    /**
     * Re-creating the dropped table is not supported — the legacy
     * services that populated it have been deleted along with the
     * table. To restore, revert the prediction-rebuild commits.
     */
    public function down(): void
    {
        // intentionally empty; see docblock above
    }
};
