function tripal_stock_schema
2.x tripal_stock.install | tripal_stock_schema() |
3.x tripal_stock.install | tripal_stock_schema() |
1.x tripal_stock.install | tripal_stock_schema() |
Implementation of hook_schema().
File
- tripal_stock/
tripal_stock.install, line 43 - Install the tripal stock module including it's content type
Code
function tripal_stock_schema() {
$schema['chado_stock'] = array(
'fields' => array(
'vid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'nid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'stock_id' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
),
'indexes' => array(
'stock_id' => array('stock_id'),
'nid' => array('nid'),
),
'unique' => array(
'stock_id' => array('stock_id'),
),
'primary key' => array('vid'),
);
return $schema;
}