You are here

function autoload_test_entity_schema in Autoload 7

Same name and namespace in other branches
  1. 7.2 tests/autoload_test_entity/autoload_test_entity.install \autoload_test_entity_schema()

Implements hook_schema().

File

tests/autoload_test_entity/autoload_test_entity.install, line 11
Module installation and updates.

Code

function autoload_test_entity_schema() {
  $schema = array();
  $schema['autoload_test_entity'] = array(
    'description' => 'Autoload Test Entity',
    'fields' => array(
      'id' => array(
        'type' => 'serial',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'description' => 'The primary identifier.',
      ),
    ),
    'primary key' => array(
      'id',
    ),
  );
  return $schema;
}