function tripal_analysis_update_6100
1.x tripal_analysis.install | tripal_analysis_update_6100() |
Update for Drupal 6.x, Tripal 1.1, Analysis Module 1.1 This update adds a new analysis_organism materialized view
File
- tripal_analysis/
tripal_analysis.install, line 171 - Implements hooks from the Schema API
Code
function tripal_analysis_update_6100() {
// add the new materialized view
tripal_analysis_add_mview_analysis_organism();
// move the analysis_type property into a new CV so that user's can change this property if
// they want too
tripal_cv_add_cv('tripal_analysis', 'Terms used for managing analyses in Tripal');
$sql = "
UPDATE {cvterm} SET cv_id =
(SELECT cv_id FROM {cv} WHERE name = 'tripal_analysis')
WHERE cv_id = (SELECT cv_id FROM {cv} WHERE name = 'tripal') AND
name = 'analysis_type'
";
chado_query($sql);
$ret = array(
'#finished' => 1,
);
return $ret;
}