Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hook_update_N: usar numeración estándar #5

Open
PabloCastellano opened this issue Apr 18, 2015 · 0 comments
Open

hook_update_N: usar numeración estándar #5

PabloCastellano opened this issue Apr 18, 2015 · 0 comments
Labels

Comments

@PabloCastellano
Copy link
Member

Según las regalas de numeración explicadas en https://api.drupal.org/api/drupal/developer!hooks!install.php/function/hook_update_N/6 si la versión actual del módulo es 6.3-dev6.3 deberíamos usar hook_update_6601, hook_update_6602, ...

Implementations of hook_update_N() are named (module name)_update_(number). The numbers are composed of three parts:

    1 digit for Drupal core compatibility.
    1 digit for your module's major release version (e.g., is this the 6.x-1.* (1) or 6.x-2.* (2) series of your module?).
    2 digits for sequential counting, starting with 00.

Examples:

    mymodule_update_5200()

        This is the first update to get the database ready to run mymodule 5.x-2.*.
    mymodule_update_6000()
        This is the required update for mymodule to run with Drupal core API 6.x.
    mymodule_update_6100()
        This is the first update to get the database ready to run mymodule 6.x-1.*.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant