tripal_cv.schema.api.inc 1.0 KB

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