[development] Choosing the N number for .install's hook_update_N

Earnie Boyd earnie at users.sourceforge.net
Mon Aug 4 16:09:17 UTC 2008


Quoting Erik Stielstra <info at erikstielstra.nl>:

> You find the policy here: http://api.drupal.org/api/function/hook_update_N/7
>

That doesn't answer the OP's question.  I find the numbering a bit 
limiting.  What happens if a module has version 10.  We should change N 
to read D-M-S where D is the Drupal version, M is the module version 
and S is the sequence number of changes with the dash (-) character 
being the delimiter of versions and sequence.  So mymod-7.x-2.1 upgrade 
would be mymod_update_7-2-1().

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



More information about the development mailing list