1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- <?php
- function blast_ui_install() {
- tripal_create_files_dir('tripal_blast');
- }
- function blast_ui_schema(){
- $schema['blastdb'] = array(
- 'description' => t('The base table for blastdb node'),
- 'fields' => array(
- 'nid' => array(
- 'description' => t('The primary identifier for a node.'),
- 'type' => 'serial',
- 'unsigned' => true,
- 'not null' => true,
- ),
- 'name' => array(
- 'description' => t('The human-readable name of the blast database.'),
- 'type' => 'varchar',
- 'length' => 255,
- 'not null' => true,
- ),
- 'path' => array(
- 'description' => t('The full path and filename prefix of the blast database.'),
- 'type' => 'varchar',
- 'length' => 1023,
- 'not null' => true,
- ),
- 'dbtype' => array(
- 'description' => t('Type of the blast database. Should be either n for nucleotide or p for protein.'),
- 'type' => 'varchar',
- 'length' => 8,
- 'not null' => true,
- ),
- ),
- 'indexes' => array(
- 'name' => array('name'),
- ),
- 'primary key' => array('nid'),
- 'unique keys' => array(
- 'nid' => array('nid'),
- ),
- );
- return $schema;
- }
|