function tripal_example_add_custom_tables
2.x tripal_example.install | tripal_example_add_custom_tables() |
Add custom tables to Chado that are required by this module
1 call to tripal_example_add_custom_tables()
- tripal_example_install in tripal_example/
tripal_example.install - Implements hook_install().
File
- tripal_example/
tripal_example.install, line 264 - Installation of the example module
Code
function tripal_example_add_custom_tables() {
// EXPLANATION: for this example module we will create a set of example tables
// that mimic Chado tables. These tables are:
//
// 1) example (for storing the primary example records)
// 2) exampleprop (for sorting properties about the example)
// 3) example_relationship (for storing relationships about examples)
// 4) example_dbxref (for storing cross-references about an example)
//
// To make the code easier to read, each table is created by a separate
// function called here:
tripal_example_add_example_table();
tripal_example_add_exampleprop_table();
tripal_example_add_example_relationship_table();
tripal_example_add_example_dbxref_table();
}