function tripal_core_upgrade_chado_1_2_to_1_3

2.x tripal_core.chado_install.inc tripal_core_upgrade_chado_1_2_to_1_3()

Upgrades Chado from v1.2 to v1.3

1 call to tripal_core_upgrade_chado_1_2_to_1_3()
tripal_core_install_chado in tripal_core/includes/tripal_core.chado_install.inc
Install Chado Schema

File

tripal_core/includes/tripal_core.chado_install.inc, line 343
Functions to install chado schema through Drupal

Code

function tripal_core_upgrade_chado_1_2_to_1_3() {

  // Upgrade some of the custom tables that Tripal created that are now in
  // Chado v1.3.  We'll do this ahead of time because the upgrade script won't
  // upgrade tables if they already exist.
  print "Checking for existing v1.3 tables in v1.2 and fixing bigints...\n";
  tripal_core_upgrade_chado_1_2_to_1_3_pre_alter();

  // Get the path to the diff schema and upgrade SQL files.
  print "Incorporating additional changes...\n";
  $diff_file = drupal_get_path('module', 'tripal_core') .
    '/chado_schema/default_schema-1.2-1.3-diff.sql';

  $success = tripal_core_install_sql($diff_file);
  if ($success) {
    print "Upgrade from v1.2 to v1.3 Successful!\n";
  }
  else {
    throw new Exception("Upgrade problems!  Please check output above for errors.");
  }
}