= 0), uid int_unsigned NOT NULL default '0', start int_unsigned NOT NULL default '0', time int_unsigned NOT NULL default '0', comment varchar(255) NOT NULL default '', PRIMARY KEY (ttid) )"); db_query("CREATE INDEX {timetracker}_ttid_idx ON {node} (ttid)"); db_query("CREATE INDEX {timetracker}_uid_idx ON {node} (uid)"); db_query("CREATE INDEX {timetracker}_start_idx ON {timetracker} (start)"); db_query("CREATE TABLE {timetracker_term} ( ttid int_unsigned NOT NULL default '0', tid int_unsigned NOT NULL default '0', PRIMARY KEY (tid,ttid) )"); db_query("CREATE INDEX {timetracker_term}_ttid_idx ON {timetracker_term} (ttid)"); db_query("CREATE INDEX {timetracker_term}_tid_idx ON {timetracker_term} (tid)"); break; } } /** * Implementation of hook_uninstall() */ function timetracker_uninstall() { db_query('DROP TABLE {timetracker}'); }