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

try {
    $conn->exec("ALTER TABLE loginusers ADD COLUMN google_2fa_secret VARCHAR(255) DEFAULT NULL");
    echo "Added google_2fa_secret column.<br>";
} catch (PDOException $e) {
    echo "google_2fa_secret column might already exist or error: " . $e->getMessage() . "<br>";
}

try {
    $conn->exec("ALTER TABLE loginusers ADD COLUMN is_2fa_enabled TINYINT(1) DEFAULT 0");
    echo "Added is_2fa_enabled column.<br>";
} catch (PDOException $e) {
    echo "is_2fa_enabled column might already exist or error: " . $e->getMessage() . "<br>";
}
?>
