Tripal
Variables
generate_chado_schema_yaml.php File Reference

Variables

 $sql
 
 $result = \Drupal::database()->query($sql)
 
 $table_schemas = []
 
 $referring = []
 

Detailed Description

This script will generate the schema file for the Tripal API for an installation of Chado. To use the script you must install the version of Chado desired using Tripal.

RUN USING DRUSH ****

Example Usage: cd modules/contrib/tripal/tripal_chado/chado_schema drush php-script generate_chado_schema_yaml.php > chado_schema-1.3.yml

Variable Documentation

◆ $sql

$sql
Initial value:
= "
SELECT table_name
FROM information_schema.tables
WHERE
table_schema = 'chado' AND
table_type = 'BASE TABLE' AND
table_name NOT like 'tripal%'
ORDER BY table_name
"