You are here

function asset_embed_schema in Asset 6

File

asset_embed/asset_embed.install, line 17

Code

function asset_embed_schema() {
  $schema = array();
  $schema['asset_embed'] = array(
    'fields' => array(
      'aeid' => array(
        'type' => 'serial',
        'unsigned' => true,
        'not null' => true,
      ),
      'aid' => array(
        'type' => 'int',
        'unsigned' => true,
        'not null' => true,
      ),
      'data' => array(
        'type' => 'text',
        'not null' => true,
      ),
    ),
    'primary key' => array(
      'aeid',
    ),
    'unique keys' => array(
      'aid' => array(
        'aid',
      ),
    ),
  );
  return $schema;
}