<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:12pt"><DIV></DIV>
<DIV>First, in case I didn't say it, this is for an internal customer module, period. I would not be thinking of this for a contributed module, much as&nbsp;I would like to in some cases (especially pre-D7 taxonomy).</DIV>
<DIV>&nbsp;</DIV>
<DIV>I don't fear JOINs. In this case, it just seems like the best place to put this data is with the other stuff to wchich it belongs. In this case, that is with the comment row. As it turns out, it doesn't make much difference because the comment module doesn't use drupal_write_record, so I would need a hook_comment to add those fields any way. What a pain!<BR></DIV>
<P><FONT face="bookman old style, new york, times, serif" color=#ff007f size=4><EM><STRONG>Nancy E. Wichmann, PMP</STRONG></EM></FONT></P>
<P><FONT face="arial, helvetica, sans-serif">Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.</FONT></P>
<DIV><BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif"><BR>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif"><FONT face=Tahoma size=2>
<HR SIZE=1>
<B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> "larry@garfieldtech.com" &lt;larry@garfieldtech.com&gt;<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> development@drupal.org<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Mon, July 12, 2010 4:47:59 PM<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [development] (no subject)<BR></FONT><BR>I generally warn people away from modifying another module's tables (core being a collection of modules).&nbsp; The potential for collision, confusion, and stuff randomly disappearing on you is too great.<BR><BR>If you have a one-off where you know what your situation is, then you can sometimes get away with it.&nbsp; A contrib module on d.o that starts messing with the user table, for instance, is a code smell that I want to stay far away from it.<BR><BR>JOINs, especially on indexed integer fields (like nid, uid, etc.) are really really fast.&nbsp; SQL is designed to make them fast.&nbsp;
 Don't fear the join.<BR><BR>--Larry Garfield<BR><BR>On 7/12/10 2:53 PM, Brian Fending wrote:<BR>&gt; +1 for moshe's .02. Contrib should not, IMO, try to modify that<BR>&gt; extensively. Reference point is CCK, which gained simplicity in its<BR>&gt; inclusion in Core, but did not assume it. Kosher Law notwithstanding.<BR>&gt; <BR>&gt; <BR>&gt; On Mon, Jul 12, 2010 at 3:04 PM, Moshe Weitzman &lt;<A href="mailto:weitzman@tejasa.com" ymailto="mailto:weitzman@tejasa.com">weitzman@tejasa.com</A><BR>&gt; &lt;mailto:<A href="mailto:weitzman@tejasa.com" ymailto="mailto:weitzman@tejasa.com">weitzman@tejasa.com</A>&gt;&gt; wrote:<BR>&gt; <BR>&gt;&nbsp; &nbsp; my .02 is that such altering is quite reasonable for custom<BR>&gt;&nbsp; &nbsp; programming but not so kosher for contrib modules<BR>&gt; <BR>&gt;&nbsp; &nbsp; On Mon, Jul 12, 2010 at 12:19 PM, nan wich &lt;<A href="mailto:nan_wich@bellsouth.net"
 ymailto="mailto:nan_wich@bellsouth.net">nan_wich@bellsouth.net</A><BR>&gt;&nbsp; &nbsp; &lt;mailto:<A href="mailto:nan_wich@bellsouth.net" ymailto="mailto:nan_wich@bellsouth.net">nan_wich@bellsouth.net</A>&gt;&gt; wrote:<BR>&gt;&nbsp; &nbsp; &nbsp; &gt; Is there an official stance on using hook_schema_alter to<BR>&gt;&nbsp; &nbsp; add columns to<BR>&gt;&nbsp; &nbsp; &nbsp; &gt; core tables? For example, we collect additional data on anonymous<BR>&gt;&nbsp; &nbsp; comments<BR>&gt;&nbsp; &nbsp; &nbsp; &gt; and want to actually save that data. Rather than creating another<BR>&gt;&nbsp; &nbsp; table (and<BR>&gt;&nbsp; &nbsp; &nbsp; &gt; subsequent JOINs), I'd just as soon stuff that data into<BR>&gt;&nbsp; &nbsp; the comments table,<BR>&gt;&nbsp; &nbsp; &nbsp; &gt; where it belongs. Should we ever disable comments (unlikely), we<BR>&gt;&nbsp; &nbsp; probably<BR>&gt;&nbsp; &nbsp; &nbsp; &gt; wouldn't mind losing that data too.<BR>&gt;&nbsp; &nbsp; &nbsp;
 &gt;<BR>&gt;&nbsp; &nbsp; &nbsp; &gt;<BR>&gt;&nbsp; &nbsp; &nbsp; &gt; Nancy E. Wichmann, PMP<BR>&gt;&nbsp; &nbsp; &nbsp; &gt;<BR>&gt;&nbsp; &nbsp; &nbsp; &gt; Injustice anywhere is a threat to justice everywhere. -- Dr.<BR>&gt;&nbsp; &nbsp; Martin L. King,<BR>&gt;&nbsp; &nbsp; &nbsp; &gt; Jr.<BR>&gt; <BR>&gt; <BR></DIV></DIV></div></body></html>