You are here

function uuid_schema_field_definition in Universally Unique IDentifier 7

Helper function that returns a schema field definition for UUID fields.

See also

uuid_schema_alter()

uuid_install()

3 calls to uuid_schema_field_definition()
UUIDAPITestCase::testSchemas in ./uuid.test
Checks that schema for tables of core entities is correctly defined.
uuid_schema_alter in ./uuid.install
Implements hook_schema_alter().
_uuid_install_uuid_fields in ./uuid.install
Install the uuid and vuuid fields for Drupal core entity tables where needed.

File

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

Code

function uuid_schema_field_definition() {
  return array(
    'type' => 'char',
    'length' => 36,
    'not null' => TRUE,
    'default' => '',
    'description' => 'The Universally Unique Identifier.',
  );
}