<?php
$res = run_query("SHOW COLUMNS FROM " . $config['table_prefix'] . "calc LIKE 'start_calc'");
if (!sql_num_rows($res)) {
    run_query("ALTER TABLE " . $config['table_prefix'] . "calc ADD start_calc TINYINT(1) NOT NULL DEFAULT 1");
}