You are here

function uuid_update_7102 in Universally Unique IDentifier 7

Ensure that the uuid and vuuid fields are added where needed.

Note that update 7102 calls _uuid_install_uuid_fields(), which is an idempotent function. If _uuid_install_uuid_fields() is changed at some point in the future (but remains idempotent), then some uuid users will have run update 7102, and some will not. A new uuid_update_7103() function would would therefore be necessary to update all users to the latest schema. At the same time, uuid_update_7102() could become an empty function, as it would not be necessary to call _uuid_install_uuid_fields() twice.

File

./uuid.install, line 243
Install, update and uninstall functions for the uuid module.

Code

function uuid_update_7102() {

  // If the user have disabled the UUID module during upgrade (as UPGRADE.txt
  // instructs), some functions will be missing. So include the module file.
  module_load_include('module', 'uuid', 'uuid');
  _uuid_install_uuid_fields();
  uuid_sync_all();
}