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

try {
    $pdo->exec("ALTER TABLE sms_templates ADD COLUMN status ENUM('active', 'inactive') DEFAULT 'active' AFTER message");
    echo "Successfully added status column to sms_templates table.\n";
} catch (PDOException $e) {
    echo "Error: " . $e->getMessage() . "\n";
}
?>