<?php

use Wibiesana\Padi\Core\DatabaseManager;

return new class {
    public function up(): void
    {
        $db = DatabaseManager::connection();
        
        // Alter documentation_path in industrial_visits table to TEXT
        $db->exec("ALTER TABLE industrial_visits MODIFY COLUMN documentation_path TEXT NULL");
        
        echo "✓ Altered industrial_visits documentation_path to TEXT successfully\n";
    }

    public function down(): void
    {
        $db = DatabaseManager::connection();
        
        $db->exec("ALTER TABLE industrial_visits MODIFY COLUMN documentation_path VARCHAR(255) NULL");
        
        echo "✓ Rolled back industrial_visits alteration successfully\n";
    }
};
