<?php
require_once 'includes/db.php';

try {
    query("ALTER TABLE employees ADD COLUMN hourly_rate DECIMAL(15,2) DEFAULT 0.00 AFTER department");
    echo "Column hourly_rate added successfully.\n";
} catch (Exception $e) {
    echo "Error: " . $e->getMessage() . "\n";
}
