You are here

function animate_any_schema in Animate Any 8

Same name and namespace in other branches
  1. 7 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_settings'] = [
    'description' => 'The base table for nodes.',
    'fields' => [
      'aid' => [
        'description' => 'The primary identifier for a animate table.',
        'type' => 'serial',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ],
      'parent' => [
        'description' => 'Parent class entry',
        'type' => 'varchar',
        'length' => 100,
        'not null' => TRUE,
        'default' => '',
      ],
      'identifier' => [
        'description' => 'JSON data of identifier and animation',
        'type' => 'text',
        'not null' => TRUE,
      ],
    ],
    'primary key' => [
      'aid',
    ],
  ];
  return $schema;
}