dbType != "oci8") { // die('Action not supported for your database.'); } //find modules that have a full-text index and rebuild it. global $beanFiles; foreach ($beanFiles as $beanname=>$beanpath) { require_once($beanpath); $focus= new $beanname(); //skips beans based on same tables. user, employee and group are an example. if(empty($focus->table_name) || isset($processed_tables[$focus->table_name])) { continue; } else { $processed_tables[$focus->table_name]=$focus->table_name; } if(!empty($dictionary[$focus->object_name]['indices'])) { $indices=$dictionary[$focus->object_name]['indices']; } else { $indices=array(); } //clean vardef defintions.. removed indexes not value for this dbtype. //set index name as the key. $var_indices=array(); foreach ($indices as $definition) { //database helpers do not know how to handle full text indices if ($definition['type']=='fulltext') { if (isset($definition['db']) and $definition['db'] != $GLOBALS['db']->dbType) { continue; } echo "Rebuilding Index {$definition['name']}
"; $GLOBALS['db']->query('alter index ' .$definition['name'] . " REBUILD"); } } } ?>