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

try {
    // Check if blood_group column exists in students table
    $stmt = $pdo->query("SHOW COLUMNS FROM students LIKE 'blood_group'");
    $result = $stmt->fetchAll();
    
    if (count($result) > 0) {
        echo "SUCCESS: Column blood_group exists in students table\n";
    } else {
        echo "ERROR: Column blood_group does not exist in students table\n";
    }
} catch (Exception $e) {
    echo "Error: " . $e->getMessage() . "\n";
}
?>