You are here

function brightcove_field_schema in Brightcove Video Connect 7.7

Same name and namespace in other branches
  1. 7.6 brightcove.install \brightcove_field_schema()

Implements hook_field_schema().

File

./brightcove.install, line 11
Installation file for Brightcove module.

Code

function brightcove_field_schema() {
  return [
    'columns' => [
      'brightcove_id' => [
        'type' => 'varchar',
        'length' => 15,
        'not null' => FALSE,
      ],
      'player' => [
        'type' => 'varchar',
        'length' => 255,
        'not null' => FALSE,
      ],
      'embed' => [
        'type' => 'varchar',
        'length' => 255,
        'not null' => FALSE,
      ],
      'bcid' => [
        'type' => 'int',
        'not null' => TRUE,
      ],
    ],
    'indexes' => [
      'brightcove_id' => [
        'brightcove_id',
      ],
    ],
  ];
}