|
@@ -25,48 +25,6 @@ function tripal_analysis_install() {
|
|
|
tripal_analysis_add_mview_analysis_organism();
|
|
|
}
|
|
|
|
|
|
-/**
|
|
|
- * Update for Drupal 6.x, Tripal 1.1, Analysis Module 1.1
|
|
|
- * This update adds a new analysis_organism materialized view
|
|
|
- *
|
|
|
- */
|
|
|
-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;
|
|
|
-}
|
|
|
-
|
|
|
-/**
|
|
|
- * Update for Drupal 6.x, Tripal 1.1, Analysis Module 1.1
|
|
|
- * This update adds a new analysis_property cv and 'Analysis Type' cvterm
|
|
|
- */
|
|
|
-function tripal_analysis_update_6101() {
|
|
|
- tripal_cv_add_cvterm(array('name' => 'Analysis Type','def' => 'The type of analysis was performed.'),
|
|
|
- 'analysis_property', 0, 1, 'tripal');
|
|
|
-
|
|
|
- $ret = array(
|
|
|
- '#finished' => 1,
|
|
|
- );
|
|
|
- return $ret;
|
|
|
-}
|
|
|
-
|
|
|
/*
|
|
|
*
|
|
|
*/
|
|
@@ -205,6 +163,34 @@ function tripal_analysis_schema() {
|
|
|
return $schema;
|
|
|
}
|
|
|
|
|
|
+/**
|
|
|
+ * Update for Drupal 6.x, Tripal 1.1, Analysis Module 1.1
|
|
|
+ * This update adds a new analysis_organism materialized view
|
|
|
+ *
|
|
|
+ */
|
|
|
+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;
|
|
|
+}
|
|
|
+
|
|
|
/**
|
|
|
* Provide update script for adding new cvterms
|
|
|
*/
|
|
@@ -217,6 +203,24 @@ function tripal_analysis_update_6001() {
|
|
|
);
|
|
|
return $ret;
|
|
|
}
|
|
|
+
|
|
|
+/**
|
|
|
+ * Update for Drupal 6.x, Tripal 1.1, Analysis Module 1.1
|
|
|
+ * This update adds a new analysis_property cv and 'Analysis Type' cvterm
|
|
|
+ */
|
|
|
+function tripal_analysis_update_6101() {
|
|
|
+ // the 'analysis_property' vocabulary is for user definable properties. Even though we already have
|
|
|
+ // an analysis_type term in the 'tripal_analysis' vocabular we duplicate it here because the
|
|
|
+ // tripal_analysis vocabulary is intended for use by the extension modules. user's should not be able
|
|
|
+ // to directly modify properties set by extension modules for an analysis.
|
|
|
+ tripal_cv_add_cvterm(array('name' => 'Analysis Type','def' => 'The type of analysis was performed.'),
|
|
|
+ 'analysis_property', 0, 1, 'tripal');
|
|
|
+
|
|
|
+ $ret = array(
|
|
|
+ '#finished' => 1,
|
|
|
+ );
|
|
|
+ return $ret;
|
|
|
+}
|
|
|
/**
|
|
|
* Implementation of hook_requirements().
|
|
|
*/
|