<?php
require 'includes/db.php';
try {
    // Drop unique email constraint from employees
    $pdo->exec("ALTER TABLE employees DROP INDEX employees_email_unique");
    echo "Removed unique email constraint from employees.\n";
    
    // Drop unique email constraint from users
    $pdo->exec("ALTER TABLE users DROP INDEX users_email_unique");
    echo "Removed unique email constraint from users.\n";
    
} catch (Exception $e) {
    echo "Error: " . $e->getMessage();
}
