<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.2900.2873" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=796004823-11052006><FONT face=Arial color=#0000ff size=2>ot if
it requires module-specific logic to convert data to a new format, or migrate
old records to a new schema. Seriously, we just got the _install() and
_update_x() hooks in place and they're working really well. The last thing we
need is a completely different mechanism for updating being shoved into place,
driven by a mess of 'intelligent' code that assumes it knows best.
;)</FONT></SPAN></DIV>
<DIV><SPAN class=796004823-11052006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=796004823-11052006><FONT face=Arial color=#0000ff
size=2>--Jeff</FONT></SPAN></DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> John Pulles
[mailto:john.pulles@gmail.com] <BR><B>Sent:</B> Thursday, May 11, 2006 4:17
PM<BR><B>To:</B> development@drupal.org<BR><B>Subject:</B> Re: [development]
Extend database abstraction layer,to include table
creation.<BR><BR></FONT></DIV>2006/5/11, Jeff Eaton <<A
href="mailto:jeff@viapositiva.net">jeff@viapositiva.net</A>>:
<DIV><SPAN class=gmail_quote></SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV>
<DIV>
<DIV><FONT face=Verdana size=2><SPAN>The're useful when the structure of a
table evolves over time -- for example, version 1.45 of module foo adds an
index for better performance. YOu can change the original definition, but
you'll need these additional functions to write the update_x()
function.</SPAN></FONT></DIV></DIV>
<DIV><SPAN class=sg>
<DIV><FONT face=Verdana
size=2><SPAN></SPAN></FONT></DIV></SPAN></DIV></DIV></BLOCKQUOTE></DIV><BR>Probably
a 'diff' can be made to determine the difference between the current tables
(if they are present) and the updated definition. The install/update system
would then process the differences. <BR></BLOCKQUOTE></BODY></HTML>