Skip to content

hook_update_N: usar numeración estándar #5

@PabloCastellano

Description

@PabloCastellano

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.*.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions