You are here

function asset_update_7100 in Asset 7

Check if uuid fields exist.

File

./asset.install, line 178
Install, update and uninstall functions for the assets module.

Code

function asset_update_7100() {
  foreach (array(
    'asset',
    'asset_type',
  ) as $base) {
    if (!db_field_exists($base, 'uuid')) {
      db_add_field($base, 'uuid', array(
        'type' => 'char',
        'length' => 36,
        'default' => '',
        'description' => 'The Universally Unique Identifier.',
      ));
    }
  }
  return FALSE;
}