Location: PHPKode > projects > Eventum > eventum-2.2/misc/upgrade/v1.5.4_to_v1.5.5/database_changes.php
<?php
require_once(dirname(__FILE__) . "/../../../init.php");
require_once(APP_INC_PATH . "db_access.php");


$stmt = "DESCRIBE eventum_custom_filter";
$res = $GLOBALS["db_api"]->dbh->getCol($stmt);
if (in_array('cst_use_fulltext', $res)) {
    $stmts = array();
    $stmts[] = "ALTER TABLE eventum_custom_filter DROP COLUMN cst_use_fulltext";
    foreach ($stmts as $stmt) {
        $stmt = str_replace('eventum_', APP_TABLE_PREFIX, $stmt);
        $res = $GLOBALS["db_api"]->dbh->query($stmt);
        if (PEAR::isError($res)) {
			echo 'ERROR: ', $res->getMessage(), ': ', $res->getDebugInfo(), "\n";
            exit(1);
        }
    }
}

?>
done
Return current item: Eventum