You are here

function entity_test_schema in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/tests/modules/entity_test/entity_test.install \entity_test_schema()

Implements hook_schema().

File

core/modules/system/tests/modules/entity_test/entity_test.install, line 39
Install, update and uninstall functions for the entity_test module.

Code

function entity_test_schema() {

  // Schema for simple entity.
  $schema['entity_test_example'] = array(
    'description' => 'Stores entity_test items.',
    'fields' => array(
      'id' => array(
        'type' => 'serial',
        'not null' => TRUE,
        'description' => 'Primary Key: Unique entity-test item ID.',
      ),
    ),
    'primary key' => array(
      'id',
    ),
  );
  return $schema;
}