[development] One-to-one tables considered harmful

Mark Fredrickson mark.m.fredrickson at gmail.com
Tue Jun 5 15:14:59 UTC 2007


Flame war aside, I think there are some good points in this thread.
Perhaps someone can clarify two points:

1. Is it kosher to add columns to other modules' tables? E.g. Is it ok
for comment to add it's statistics to the node table. Similarly, I
could imagine the stats module would want to add summary information,
and perhaps other modules as well.

2. Do David's arguments support more Single Table Inheritance[1] in
Drupal (e.g. adding columns to node that don't necessarily apply to
every node type)? For example, should CCK add columns to the node
table that only apply to some types of nodes.

-M

[1] http://www.martinfowler.com/eaaCatalog/singleTableInheritance.html


More information about the development mailing list