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

try {
    $pdo = db();
    $pdo->exec("ALTER TABLE factions ADD COLUMN color VARCHAR(7) DEFAULT '#808080' AFTER fa_icon");
    echo "Successfully added 'color' column to 'factions' table.\n";
} catch (PDOException $e) {
    echo "Error adding column: " . $e->getMessage() . "\n";
}

