You are here

function bean_uuid_install in Bean (for Drupal 7) 7

Implements hook_install().

File

bean_uuid/bean_uuid.install, line 21
Bean UUID installation and schema hooks.

Code

function bean_uuid_install() {
  module_load_include('install', 'uuid');
  $field = uuid_schema_field_definition();
  db_add_field('bean', 'uuid', $field);
  db_add_index('bean', 'uuid', array(
    'uuid',
  ));
  db_add_field('bean_revision', 'vuuid', $field);
  db_add_index('bean_revision', 'vuuid', array(
    'vuuid',
  ));
}