tripal_cv.schema.api.inc 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /**
  3. * @file
  4. * Describes some chado tables to the tripal schema api
  5. */
  6. /**
  7. * Implements hook_chado_schema_v1_2_tripal_obo_temp()
  8. * Purpose: To describe the structure of 'tripal_obo_temp' to tripal
  9. * @see chado_insert_record()
  10. * @see chado_update_record()
  11. * @see chado_select_record()
  12. *
  13. * @return
  14. * An array describing the 'tripal_obo_temp' table
  15. *
  16. * @ingroup tripal_chado_v1.2_schema_api
  17. */
  18. function tripal_cv_chado_schema_v1_2_tripal_obo_temp() {
  19. $schema = array(
  20. 'table' => 'tripal_obo_temp',
  21. 'fields' => array(
  22. 'id' => array(
  23. 'type' => 'varchar',
  24. 'length' => '255',
  25. 'not null' => TRUE,
  26. ),
  27. 'stanza' => array(
  28. 'type' => 'text',
  29. 'not null' => TRUE,
  30. ),
  31. 'type' => array(
  32. 'type' => 'varchar',
  33. 'length' => '50',
  34. 'not null' => TRUE,
  35. ),
  36. ),
  37. 'indexes' => array(
  38. 'tripal_obo_temp_idx0' => array('id'),
  39. 'tripal_obo_temp_idx0' => array('type'),
  40. ),
  41. 'unique keys' => array(
  42. 'tripal_obo_temp_uq0' => array('id'),
  43. ),
  44. );
  45. return $schema;
  46. }