--- lineage.original.install	2008-04-24 21:24:58.000000000 +0200
+++ lineage.install	2008-06-02 21:22:24.000000000 +0200
@@ -4,7 +4,7 @@ function lineage_install() {
   switch ($GLOBALS['db_type']) {
     case 'mysql':
     case 'mysqli':
-      db_query("CREATE TABLE term_lineage ( " .
+      db_query("CREATE TABLE {term_lineage} ( " .
         "tid int(10) unsigned NOT NULL default '0', " .
         "lineage varchar(255) NOT NULL default '', " .
         "depth int(10), " .
@@ -13,19 +13,19 @@ function lineage_install() {
       ")  TYPE=MyISAM /*!40100 DEFAULT CHARACTER SET utf8 */");
       break;
     case 'pgsql':
-      db_query("CREATE TABLE term_lineage ( " .
+      db_query("CREATE TABLE {term_lineage} ( " .
         "tid integer NOT NULL default '0', " .
         "lineage varchar(255) NOT NULL default '', " .
         "depth integer NOT NULL default '' " .
       ")");
-      db_query("CREATE INDEX term_lineage_tid_idx ON term_lineage(tid)");
-      db_query("CREATE INDEX term_lineage_lineage_idx ON term_lineage(lineage)");
+      db_query("CREATE INDEX term_lineage_tid_idx ON {term_lineage}(tid)");
+      db_query("CREATE INDEX term_lineage_lineage_idx ON {term_lineage}(lineage)");
     break;
   }
 }
 
 function lineage_uninstall() {
-  db_query("DROP TABLE term_lineage");
+  db_query("DROP TABLE {term_lineage}");
 }
 
 function lineage_update_1() {
