You are here

function import_schema in Import 6

File

./import.install, line 3

Code

function import_schema() {
  $schema['import'] = array(
    'description' => t('The base table for imports.'),
    'fields' => array(
      'impid' => array(
        'description' => t('The unique identifier.'),
        'type' => 'varchar',
        'length' => 256,
        'not null' => TRUE,
      ),
      'type' => array(
        'description' => t('The type of import.'),
        'type' => 'varchar',
        'length' => 32,
        'not null' => TRUE,
      ),
    ),
    'primary key' => array(
      'impid',
      'type',
    ),
  );
  $schema['import_fail'] = array(
    'description' => t('The base fails for imports.'),
    'fields' => array(
      'impid' => array(
        'description' => t('The unique identifier.'),
        'type' => 'varchar',
        'length' => 256,
        'not null' => TRUE,
      ),
      'type' => array(
        'description' => t('The type of import.'),
        'type' => 'varchar',
        'length' => 32,
        'not null' => TRUE,
      ),
      'message' => array(
        'type' => 'text',
        'not null' => TRUE,
        'size' => 'big',
        'description' => t('Message'),
      ),
    ),
    'primary key' => array(
      'impid',
      'type',
    ),
  );
  $schema['import_pass'] = array(
    'description' => t('The completed imports.'),
    'fields' => array(
      'impid' => array(
        'description' => t('The unique identifier.'),
        'type' => 'varchar',
        'length' => 256,
        'not null' => TRUE,
      ),
      'type' => array(
        'description' => t('The type of import.'),
        'type' => 'varchar',
        'length' => 32,
        'not null' => TRUE,
      ),
    ),
    'primary key' => array(
      'impid',
      'type',
    ),
  );
  return $schema;
}