<?php
$pdo = new PDO('mysql:host=localhost;dbname=constra_db', 'root', '');
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);

try {
    $sql = "ALTER TABLE project_expenses ADD COLUMN employee_id INT AFTER project_id";
    $pdo->exec($sql);
    echo "Column 'employee_id' added to 'project_expenses' successfully.";
} catch (PDOException $e) {
    echo "Error: " . $e->getMessage();
}
