You are here

function biblio_ris_schema in Bibliography Module 7.2

Same name and namespace in other branches
  1. 6.2 modules/RIS/biblio_ris.install \biblio_ris_schema()
  2. 7 modules/RIS/biblio_ris.install \biblio_ris_schema()

Implementation of hook_schema().

Note: Pro Drupal Development models use of t() to translate 'description' for field definitions, but Drupal core does not use them. We follow core.

File

modules/RIS/biblio_ris.install, line 211
Database table creation for biblio_ris module.

Code

function biblio_ris_schema() {
  $schema = array();
  $schema['biblio_ris'] = array(
    'fields' => array(
      'bid' => array(
        'type' => 'int',
        'not null' => TRUE,
      ),
      'biblio_ris_md5' => array(
        'type' => 'char',
        'length' => 32,
        'not null' => TRUE,
      ),
    ),
    'primary key' => array(
      'bid',
    ),
  );
  return $schema;
}