[development] (no subject)
Earnie Boyd
earnie at users.sourceforge.net
Mon Jul 12 17:27:15 UTC 2010
Pierre Rineau wrote:
> Le lundi 12 juillet 2010 à 09:19 -0700, nan wich a écrit :
>>
>> Is there an official stance on using hook_schema_alter to add columns
>> to core tables? For example, we collect additional data on anonymous
>> comments and want to actually save that data. Rather than creating
>> another table (and subsequent JOINs), I'd just as soon stuff that data
>> into the comments table, where it belongs. Should we ever disable
>> comments (unlikely), we probably wouldn't mind losing that data too.
>>
>> Nancy E. Wichmann, PMP
>>
>> Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L.
>> King, Jr.
>
> I would say, create a new table instead of populating core one.
>
I would create a new table as well. The problem with modifying the core
table is you never know if there will be a column added to it that
matches a name you've chosen and if you add prefixes/suffixes to help
namespace the column it becomes annoyingly long.
--
Earnie
-- http://progw.com
-- http://www.for-my-kids.com
More information about the development
mailing list