function tripal_core_get_schemas

2.x tripal_core.install tripal_core_get_schemas()
3.x tripal_core.install tripal_core_get_schemas()
1.x tripal_core.install tripal_core_get_schemas()

This function simply defines all tables needed for the module to work correctly. By putting the table definitions in a separate function we can easily provide the entire list for hook_install or individual tables for an update.

Related topics

1 call to tripal_core_get_schemas()
tripal_core_schema in tripal_core/tripal_core.install
Implementation of hook_schema().

File

tripal_core/tripal_core.install, line 104
Contains functions used to install/uninstall tripal_core.

Code

function tripal_core_get_schemas() {
  $schema = array();

  // get all the various schema parts and join them together
  $temp = tripal_core_jobs_schema();
  foreach ($temp as $table => $arr) {
    $schema[$table] = $arr;
  }
  $temp = tripal_core_mviews_schema();
  foreach ($temp as $table => $arr) {
    $schema[$table] = $arr;
  }
  $temp = tripal_core_custom_tables_schema();
  foreach ($temp as $table => $arr) {
    $schema[$table] = $arr;
  }

  return $schema;
}