| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 | <?php/** * Implementation of hook_schema(). * * @ingroup tripal */function tripal_ws_schema() {  $schema = array();  $schema['tripal_sites'] = tripal_ws_tripal_sites_schema();  return $schema;}/** * The base table for TripalVocab schema. * * Table to store information about other Tripal sites. */function tripal_ws_tripal_sites_schema() {  $schema = array(    'description' => 'The table for other Tripal sites.',    'fields' => array(      'id' => array(        'description' => 'The primary identifier for a record.',        'type' => 'serial',        'unsigned' => TRUE,        'not null' => TRUE,      ),      'name' => array(        'description' => 'Name of the Tripal site',        'type' => 'varchar',        'length' => 255,        'not null' => TRUE,      ),      'url' => array(        'description' => 'The URL of the Tripal site.',        'type' => 'varchar',        'length' => 255,        'not null' => TRUE,      ),      'description' => array(        'description' => 'The description of the Tripal site.',        'type' => 'varchar',        'length' => 255,      ),    ),    'indexes' => array(      'name' => array('name'),      'url' => array('url'),      'description' => array('description'),    ),    'unique keys' => array('name' => array('name')),    'primary key' => array('id'),  );  return $schema;}
 |