You are here

function animate_any_schema in Animate Any 7

Same name and namespace in other branches
  1. 8 animate_any.install \animate_any_schema()

Implements hook_schema().

File

./animate_any.install, line 11
Install, update and uninstall functions for the animate any module.

Code

function animate_any_schema() {
  $schema['animate_any'] = array(
    'description' => 'The base table for nodes.',
    'fields' => array(
      'aid' => array(
        'description' => 'The primary identifier for a animate table.',
        'type' => 'serial',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'parent' => array(
        'description' => 'Parent class entry',
        'type' => 'varchar',
        'length' => 100,
        'not null' => TRUE,
        'default' => '',
      ),
      'identifier' => array(
        'description' => 'JSON data of identifier and animation',
        'type' => 'text',
        'not null' => TRUE,
      ),
    ),
    'primary key' => array(
      'aid',
    ),
  );
  return $schema;
}