Kaynağa Gözat

CV: Small fix to OBO Loader: tripal_obo_temp needed to be defined through schema API in order for chado insert to work

Lacey Sanderson 11 yıl önce
ebeveyn
işleme
4d560d70ed

+ 20 - 0
tripal_cv/api/tripal_cv.schema.api.inc

@@ -0,0 +1,20 @@
+<?php
+
+/**
+ * Implements hook_chado_schema_v1_2_tripal_obo_temp()
+ * Purpose: To describe the structure of 'tripal_obo_temp' to tripal
+ * @see tripal_core_chado_insert()
+ * @see tripal_core_chado_update()
+ * @see tripal_core_chado_select()
+ *
+ * @return
+ *    An array describing the 'tripal_obo_temp' table
+ *
+ * @ingroup tripal_chado_v1.2_schema_api
+ *
+ */
+function tripal_cv_chado_schema_v1_2_tripal_obo_temp() {
+  $schema = tripal_cv_get_custom_tables('tripal_obo_temp');
+  $description = $schema['tripal_obo_temp'];
+  return $description;
+}

+ 2 - 0
tripal_cv/tripal_cv.module

@@ -11,6 +11,8 @@ require_once "includes/cvtermpath_form.inc";
 
 require_once "includes/tripal_cv_admin.inc";
 
+require_once "api/tripal_cv.schema.api.inc";
+
 /**
  * @defgroup tripal_cv CV Module
  * @ingroup tripal_modules