tripal_cv.schema.api.inc 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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. *
  9. * Purpose: To describe the structure of 'tripal_obo_temp' to tripal
  10. * @see chado_insert_record()
  11. * @see chado_update_record()
  12. * @see chado_select_record()
  13. *
  14. * @return
  15. * An array describing the 'tripal_obo_temp' table
  16. *
  17. * @ingroup tripal_chado_v1.2_schema_api
  18. */
  19. function tripal_cv_chado_schema_v1_2_tripal_obo_temp() {
  20. $schema = array(
  21. 'table' => 'tripal_obo_temp',
  22. 'fields' => array(
  23. 'id' => array(
  24. 'type' => 'varchar',
  25. 'length' => '255',
  26. 'not null' => TRUE,
  27. ),
  28. 'stanza' => array(
  29. 'type' => 'text',
  30. 'not null' => TRUE,
  31. ),
  32. 'type' => array(
  33. 'type' => 'varchar',
  34. 'length' => '50',
  35. 'not null' => TRUE,
  36. ),
  37. ),
  38. 'indexes' => array(
  39. 'tripal_obo_temp_idx0' => array('id'),
  40. 'tripal_obo_temp_idx0' => array('type'),
  41. ),
  42. 'unique keys' => array(
  43. 'tripal_obo_temp_uq0' => array('id'),
  44. ),
  45. );
  46. return $schema;
  47. }
  48. /**
  49. * Implements hook_chado_schema_v1_3_tripal_obo_temp()
  50. *
  51. * Purpose: To describe the structure of 'tripal_obo_temp' to tripal
  52. * @see chado_insert_record()
  53. * @see chado_update_record()
  54. * @see chado_select_record()
  55. *
  56. * @return
  57. * An array describing the 'tripal_obo_temp' table
  58. *
  59. * @ingroup tripal_chado_v1.3_schema_api
  60. */
  61. function tripal_cv_chado_schema_v1_3_tripal_obo_temp() {
  62. $schema = array(
  63. 'table' => 'tripal_obo_temp',
  64. 'fields' => array(
  65. 'id' => array(
  66. 'type' => 'varchar',
  67. 'length' => '255',
  68. 'not null' => TRUE,
  69. ),
  70. 'stanza' => array(
  71. 'type' => 'text',
  72. 'not null' => TRUE,
  73. ),
  74. 'type' => array(
  75. 'type' => 'varchar',
  76. 'length' => '50',
  77. 'not null' => TRUE,
  78. ),
  79. ),
  80. 'indexes' => array(
  81. 'tripal_obo_temp_idx0' => array('id'),
  82. 'tripal_obo_temp_idx0' => array('type'),
  83. ),
  84. 'unique keys' => array(
  85. 'tripal_obo_temp_uq0' => array('id'),
  86. ),
  87. );
  88. return $schema;
  89. }