diff -ru /tmp/node_breadcrumb/node_breadcrumb.install node_breadcrumb/node_breadcrumb.install --- /tmp/node_breadcrumb/node_breadcrumb.install 2007-08-22 15:33:54.000000000 +0200 +++ node_breadcrumb/node_breadcrumb.install 2008-03-22 15:23:38.221617530 +0100 @@ -3,16 +3,15 @@ function node_breadcrumb_install() { db_query("CREATE TABLE {node_breadcrumb_rule} ( - `rid` int(10) NOT NULL auto_increment, - `node_type` varchar(255) default NULL, - `tid1` int(10) default NULL, - `tid2` int(10) default NULL, - `mid` int(10) default NULL, - `weight` tinyint(4) NOT NULL default '0', - `condition` text, - PRIMARY KEY (`rid`), - KEY `weight` (`weight`) - ) DEFAULT CHARSET=utf8" + rid SERIAL, + node_type varchar(255) default NULL, + tid1 int default NULL, + tid2 int default NULL, + mid int default NULL, + weight smallint NOT NULL default '0', + condition text, + PRIMARY KEY (rid) + )" ); drupal_set_message("node_breadcrumb_rule table has been created."); } @@ -25,6 +24,6 @@ } function node_breadcrumb_update_1() { - $ret[] = update_sql("ALTER TABLE {node_breadcrumb_rule} ADD `condition` text"); + $ret[] = update_sql("ALTER TABLE {node_breadcrumb_rule} ADD condition text"); return $ret; } diff -ru /tmp/node_breadcrumb/node_breadcrumb.module node_breadcrumb/node_breadcrumb.module --- /tmp/node_breadcrumb/node_breadcrumb.module 2007-08-31 18:55:42.000000000 +0200 +++ node_breadcrumb/node_breadcrumb.module 2008-03-22 15:31:28.767303847 +0100 @@ -194,7 +194,7 @@ foreach ($values as $key => $value) { if (substr($key, 0, 4) == 'vid_' && $value != 0) $tid[] = $value; } - db_query("INSERT INTO {node_breadcrumb_rule} (node_type, tid1, tid2, mid, weight, `condition`) VALUES ('%s', %d, %d, %d, %d, '%s')", $values['node_type'], $tid[0], $tid[1], $values['mid'], $values['weight'], $values['condition']); + db_query("INSERT INTO {node_breadcrumb_rule} (node_type, tid1, tid2, mid, weight, condition) VALUES ('%s', %d, %d, %d, %d, '%s')", $values['node_type'], $tid[0], $tid[1], $values['mid'], $values['weight'], $values['condition']); drupal_set_message(t('Rule has been added.')); } }