Tripal
Functions
tripal_chado.install.inc File Reference

Functions

 tripal_chado_load_form ($form, $form_state)
 
 tripal_chado_load_form_ajax_callback ($form, $form_state)
 
 tripal_chado_load_form_validate ($form, &$form_state)
 
 tripal_chado_load_form_submit ($form, &$form_state)
 
 tripal_chado_load_drush_submit ($version)
 
 tripal_chado_install_chado ($action, TripalJob $job=NULL)
 
 tripal_chado_install_chado_1_3 (TripalJob $job=NULL)
 
 tripal_chado_install_chado_1_2 ()
 
 tripal_chado_install_chado_1_11 ()
 
 tripal_chado_upgrade_chado_1_2_to_1_3 ()
 
 tripal_chado_upgrade_chado_1_2_to_1_3_pre_alter ()
 
 tripal_chado_upgrade_chado_1_11_to_1_2 ()
 
 tripal_chado_reset_chado_schema ()
 
 tripal_chado_install_sql ($sql_file)
 
 tripal_chado_install_done ()
 

Detailed Description

Functions to install chado schema through Drupal

Function Documentation

◆ tripal_chado_install_chado()

tripal_chado_install_chado (   $action,
TripalJob  $job = NULL 
)

Install Chado Schema

◆ tripal_chado_install_chado_1_2()

tripal_chado_install_chado_1_2 ( )

Installs Chado v1.2.

◆ tripal_chado_install_chado_1_3()

tripal_chado_install_chado_1_3 ( TripalJob  $job = NULL)

Installs Chado v1.3.

◆ tripal_chado_install_done()

tripal_chado_install_done ( )

Finish the Chado Schema Installation

◆ tripal_chado_install_sql()

tripal_chado_install_sql (   $sql_file)

Execute the provided SQL

Parameters
$sql_fileContains SQL statements to be executed

◆ tripal_chado_load_drush_submit()

tripal_chado_load_drush_submit (   $version)

Submit Load Chado Schema Form

◆ tripal_chado_load_form()

tripal_chado_load_form (   $form,
  $form_state 
)

Load Chado Schema Form

◆ tripal_chado_load_form_ajax_callback()

tripal_chado_load_form_ajax_callback (   $form,
  $form_state 
)

Ajax callback function for the gensas_job_view_panel_form.

Parameters
$form
$form_state

◆ tripal_chado_load_form_submit()

tripal_chado_load_form_submit (   $form,
$form_state 
)

Submit Load Chado Schema Form

◆ tripal_chado_reset_chado_schema()

tripal_chado_reset_chado_schema ( )

Reset the Chado Schema This drops the current chado and chado-related schema and re-creates it

◆ tripal_chado_upgrade_chado_1_11_to_1_2()

tripal_chado_upgrade_chado_1_11_to_1_2 ( )

Upgrades Chado from v1.11 to v1.2

◆ tripal_chado_upgrade_chado_1_2_to_1_3()

tripal_chado_upgrade_chado_1_2_to_1_3 ( )

Upgrades Chado from v1.2 to v1.3

◆ tripal_chado_upgrade_chado_1_2_to_1_3_pre_alter()

tripal_chado_upgrade_chado_1_2_to_1_3_pre_alter ( )

Upgrade custom tables that may match the tables now in Chado v1.3.

There were many new tables that were added to Chado v1.3 that were suggested by the Chado user community. Some of those were Tripal users. Therefore, to help these Tripal users upgrade more seemlessly this function checks if those custom tables already exists, and if so updates them as best it can to match. At a minimum it will create the table if it doesn't exist and if it does it will change the primary keys and foreign keys to be big ints.