if ($manageObj->modifyLibrary(PATH_FACEBOOK . '/classes/', 'ask.class.php')) { // Ask Tables require_once PATH_FACEBOOK . '/classes/ask.class.php'; askQuestionsTable::createTable($manageObj); askAnswersTable::createTable($manageObj); } $q = $manageObj->db->query("SHOW INDEX FROM AskQuestions;"); if ($manageObj->db->countQ($q) == 0) { $manageObj->db->query("ALTER TABLE AskQuestions ADD FULLTEXT INDEX related (question);"); } } if (defined('ENABLE_IDEAS')) { if ($manageObj->modifyLibrary(PATH_FACEBOOK . '/classes/', 'ideas.class.php')) { // Ideas Table require_once PATH_FACEBOOK . '/classes/ideas.class.php'; ideasTable::createTable($manageObj); } $q = $manageObj->db->query("SHOW INDEX FROM Ideas;"); if ($manageObj->db->countQ($q) == 0) { $manageObj->db->query("ALTER TABLE Ideas ADD FULLTEXT INDEX related (idea);"); } } if ($manageObj->modifyLibrary(PATH_CORE . '/classes/', 'tags.class.php')) { require_once PATH_CORE . '/classes/tags.class.php'; TagsTable::createTable($manageObj); TaggedObjectsTable::createTable($manageObj); $tagsTable = new tagsTable($manageObj->db); $tagsTable->initialize(); // set default tags /* deprecated for now // switch to stuff database