[development] One-to-one tables considered harmful
david at fourkitchens.com
Tue Jun 5 16:03:20 UTC 2007
Mark Fredrickson wrote:
> 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 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.
I don't think so. I discussed my reasons in my original post.
>  http://www.martinfowler.com/eaaCatalog/singleTableInheritance.html
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 186 bytes
Desc: OpenPGP digital signature
Url : http://lists.drupal.org/pipermail/development/attachments/20070605/c821e3d2/attachment.pgp
More information about the development