You are here

function kaltura_playlist_schema in Kaltura 6

Same name and namespace in other branches
  1. 5 plugins/kaltura_playlist/kaltura_playlist.install \kaltura_playlist_schema()
  2. 6.2 plugins/kaltura_playlist/kaltura_playlist.install \kaltura_playlist_schema()

Implementation of hook_schema().

Defines the tables and fields in each table that we add to the database to store kaltura data (nodes/notifications...)

File

plugins/kaltura_playlist/kaltura_playlist.install, line 16

Code

function kaltura_playlist_schema() {
  $schema['node_kaltura_playlist'] = array(
    'description' => t('The base table for Kaltura playlist nodes.'),
    'fields' => array(
      'vid' => array(
        'description' => t('The current {node_revisions}.vid version identifier.'),
        'type' => 'int',
        'size' => 'small',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
      ),
      'nid' => array(
        'description' => t('The primary identifier for a node.'),
        'type' => 'int',
        'size' => 'small',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'playlist_view' => array(
        'description' => t('none'),
        'type' => 'varchar',
        'length' => 255,
        'default' => "",
        'not null' => TRUE,
      ),
    ),
    'primary key' => array(
      'vid',
    ),
  );
  return $schema;
}