function iss_schema in Image Style Selector 7.2
Implements hook_schema().
File
- ./
iss.install, line 15 - Install file for the Image Style Selector field.
Code
function iss_schema() {
$schema['iss_styles'] = array(
'description' => 'Holds information about image styles changes.',
'fields' => array(
'fid' => array(
'description' => 'The {file_managed}.fid of the image file.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'vid' => array(
'description' => 'The {file_managed_revisions}.vid (if it exists) of the file.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'source_style' => array(
'description' => 'The machine name of the source style.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
),
'target_style' => array(
'description' => 'The machine name of the target style.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
),
),
'foreign keys' => array(
'file' => array(
'table' => 'file_managed',
'columns' => array(
'fid' => 'fid',
),
),
),
'primary key' => array(
'fid',
'vid',
'source_style',
),
);
return $schema;
}