Kaynağa Gözat

Debugging tables being created in wrong schema

spficklin 12 yıl önce
ebeveyn
işleme
63dda37c13

+ 2 - 2
tripal_core/api/tripal_core.api.inc

@@ -2433,8 +2433,8 @@ function tripal_db_set_active($dbname = 'default') {
       return db_set_active($dbname);
     }
     // if the user requests a database other than the default
-    // then we need to try and set the chado search path.  This
-    // only works if Chado is local to the Drpual database. If it
+    // then we need to try and set the search path.  This
+    // only works if the schema is local to the Drpual database. If it
     // fails then we assume the database is not local and we'll
     // set it as normal.
     else {

+ 5 - 0
tripal_core/tripal_core.module

@@ -57,6 +57,11 @@ function tripal_core_init() {
   
   // make sure the current version of chado is set
   tripal_core_set_chado_version();  
+  
+  // make sure we are in the public schema. If there is an errant
+  // module that doesn't properly set the search path back, then
+  // we'll have issues
+  tripal_db_set_default_search_path();
     
 }