[support] Clarification about hook_schema(), hook_update() and hook_install () in D6

Larry Garfield larry at garfieldtech.com
Tue Oct 14 03:26:02 UTC 2008


On Monday 13 October 2008 6:16:22 am Earnie Boyd wrote:
> Quoting Pierre Rineau <pierre.rineau at makina-corpus.com>:
> > The question is: do I have to modify my hook_schema so it carries the
> > new field or not ?
>
> Yes, hook_schema needs updated.
>
> > When a new user will install the module, does drupal just assume that
> > the schema is up to date then it does not need to do the updates ?
>
> Yes, no updates are run on new install.
>
> > Simple question. It was this behavior with D5, but I'm not sure with D6.
>
> AFAIK, there is no change to this in D7 as well.

Yet. :-)

-- 
Larry Garfield
larry at garfieldtech.com


More information about the support mailing list