You are here

function opigno_video_app_schema in Opigno Video App 7

Implements hook_schema().

File

./opigno_video_app.install, line 306
Contains install instructions and logic

Code

function opigno_video_app_schema() {
  return array(
    'opigno_video_app_video_sort' => array(
      'fields' => array(
        'gid' => array(
          'type' => 'int',
          'unsigned' => TRUE,
          'not null' => TRUE,
        ),
        'video_nid' => array(
          'type' => 'int',
          'unsigned' => TRUE,
          'not null' => TRUE,
        ),
        'weight' => array(
          'type' => 'int',
          'not null' => TRUE,
          'default' => '0',
        ),
      ),
      'indexes' => array(
        'video_group_id' => array(
          'gid',
        ),
        'video_video_id' => array(
          'video_nid',
        ),
      ),
    ),
  );
}