<?php
$res = run_query("SHOW COLUMNS FROM " . $config['table_prefix'] . "send_queue LIKE 'stack'");
if (!sql_num_rows($res)) {
    run_query("ALTER TABLE " . $config['table_prefix'] . "send_queue ADD stack INT(11) NOT NULL");
}