You are here

function atom_reference_field_schema in Scald: Media Management made easy 7

Implements hook_field_schema().

File

modules/fields/atom_reference/atom_reference.install, line 10
Install, update and uninstall functions for the Atom reference module.

Code

function atom_reference_field_schema($field) {
  return array(
    'columns' => array(
      'sid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => FALSE,
      ),
      'options' => array(
        'description' => 'An options set for rendering the referenced atom.',
        'type' => 'blob',
        'length' => 'big',
        'not null' => FALSE,
        'serialize' => TRUE,
        'object default' => array(),
        'initial' => serialize(array()),
      ),
    ),
    'indexes' => array(
      'sid' => array(
        'sid',
      ),
    ),
  );
}