[drupal-devel] forum table WTF

Gerhard Killesreiter killesreiter at physik.uni-freiburg.de
Mon Jun 6 14:03:24 UTC 2005



On Mon, 6 Jun 2005, Gabor Hojtsy wrote:

> It seems that the nid->tid relationship is maintained, loaded, inserted,
> updated, removed, but then only used in the forum_get_topics query and
> only to ensure (on top of term_node) that the nids match. If this is
> connected to the shadow copy feature, then this query is supposed to
> select the 'primary term' for this particular node, and this is why the
> whole maintanance stuff is needed. From the implementation of the shadow
> copy feature, it stores all the relations in the term_node table, and
> maintains no information on what is the primary term for a forum node.

IIRC, the "shadow copy" feature was simplified to not have a "primary
tid" anymore about a year ago.

> Otherwise I see no reason to keep this table.

I agree. Will also remove the need to do extra handling of forum nodes
in the upgrade path of my revisions patch.

Cheers,
	Gerhard




More information about the drupal-devel mailing list