<?php
require_once 'config/database.php';

try {
    // Add blood_group column to students table
    $pdo->exec("ALTER TABLE students ADD COLUMN blood_group VARCHAR(10) NULL DEFAULT NULL AFTER gender");
    echo "Column blood_group added successfully to students table\n";
} catch (Exception $e) {
    echo "Error: " . $e->getMessage() . "\n";
}
?>