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