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

Earnie Boyd earnie at users.sourceforge.net
Mon Oct 13 11:16:22 UTC 2008


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.

Earnie -- http://for-my-kids.com/
-- http://give-me-an-offer.com/



More information about the support mailing list