You are here

function simplecrop_schema in SimpleCrop 7

Implements hook_schema().

File

./simplecrop.install, line 11
Contains table description for SimpleCrop module.

Code

function simplecrop_schema() {
  $schema['simplecrop'] = array(
    'description' => 'This table contains crop data for images.',
    'fields' => array(
      'uri' => array(
        'description' => 'The URI to access an image (either local or remote).',
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => '',
        'binary' => TRUE,
      ),
      'data' => array(
        'description' => 'Crop data of an image.',
        'type' => 'blob',
        'not null' => TRUE,
        'size' => 'normal',
      ),
    ),
    'primary key' => array(
      'uri',
    ),
  );
  return $schema;
}