No pending updates

How to change and update database using hook_update_N in Drupal 8

  1. Create *.install file inside your module folder. If your module is named mymodule, the path of the *.install file should be in "/module/mymodule/mymodule.install".
  2. Impletment the hook_update_N function on the mymodule.install file. The character N is the version number of the update.
    • In Drupal 8, The first digital should be 8.
    • The second digital is the api version of the module.
    • The last two digitals is the serial number of the update.
Subscribe to RSS - No pending updates