blast_ui.install 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. /**
  3. * @file
  4. * Contains hooks to handle installation of this module
  5. */
  6. function blast_ui_install() {
  7. tripal_create_files_dir('tripal_blast');
  8. }
  9. function blast_ui_schema(){
  10. $schema['blastdb'] = array(
  11. 'description' => t('The base table for blastdb node'),
  12. 'fields' => array(
  13. 'nid' => array(
  14. 'description' => t('The primary identifier for a node.'),
  15. 'type' => 'serial',
  16. 'unsigned' => true,
  17. 'not null' => true,
  18. ),
  19. 'name' => array(
  20. 'description' => t('The name of the blast database'),
  21. 'type' => 'varchar',
  22. 'length' => 255,
  23. 'not null' => true,
  24. ),
  25. 'path' => array(
  26. 'description' => t('The address of the blast database'),
  27. 'type' => 'varchar',
  28. 'length' => 1023,
  29. 'not null' => true,
  30. ),
  31. ),
  32. 'indexes' => array(
  33. 'name' => array('name'),
  34. ),
  35. 'primary key' => array('nid'),
  36. 'unique keys' => array(
  37. 'nid' => array('nid'),
  38. ),
  39. );
  40. return $schema;
  41. }