function tripal_cv_get_tripal_cv_defaults_table
2.x tripal_cv.install | tripal_cv_get_tripal_cv_defaults_table(&$schema) |
- Table definition for the tripal_cv_defaults table
Parameters
unknown $schema:
2 calls to tripal_cv_get_tripal_cv_defaults_table()
- tripal_cv_schema in tripal_cv/
tripal_cv.install - Implementation of hook_schema().
- tripal_cv_update_7200 in tripal_cv/
tripal_cv.install - This is the required update for tripal_cv when upgrading from Drupal core API 6.x.
File
- tripal_cv/
tripal_cv.install, line 155 - Contains functions executed only on install/uninstall of this module
Code
function tripal_cv_get_tripal_cv_defaults_table(&$schema) {
$schema['tripal_cv_defaults'] = array(
'fields' => array(
'cv_default_id' => array(
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE
),
'table_name' => array(
'type' => 'varchar',
'length' => 128,
'not null' => TRUE,
),
'field_name' => array(
'type' => 'varchar',
'length' => 128,
'not null' => TRUE,
),
'cv_id' => array(
'type' => 'int',
'not null' => TRUE,
)
),
'indexes' => array(
'tripal_cv_defaults_idx1' => array('table_name', 'field_name'),
),
'unique keys' => array(
'tripal_cv_defaults_unq1' => array('table_name', 'field_name', 'cv_id'),
),
'primary key' => array('cv_default_id')
);
}