You are here

function pdf_to_imagefield_schema in PDF to ImageField 6

Implementation of hook_schema().

File

./pdf_to_imagefield.install, line 45
PDF to ImageField install and enable hooks.

Code

function pdf_to_imagefield_schema() {
  $schema = array();
  $schema['pdf_to_imagefield'] = array(
    'fields' => array(
      'pid' => array(
        'type' => 'serial',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'fid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
      ),
      'field' => array(
        'type' => 'varchar',
        'length' => 32,
        'not null' => TRUE,
        'default' => '',
      ),
      'density_x' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 100,
      ),
      'density_y' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 100,
      ),
      'finished' => array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
      ),
    ),
    'primary key' => array(
      'pid',
    ),
  );
  return $schema;
}