<?php
require_once __DIR__ . '/../src/Utils/Env.php';
require_once __DIR__ . '/../src/Config/Database.php';

use App\Utils\Env;
use App\Config\Database;

Env::load(__DIR__ . '/../../.env');
$db = Database::getInstance()->getConnection();

try {
    $db->exec("ALTER TABLE conversations ADD COLUMN anonymous_participant_id BIGINT UNSIGNED NULL");
    echo "Column added successfully.\n";
} catch (PDOException $e) {
    echo "Error (maybe exists): " . $e->getMessage() . "\n";
}
