modmediasourceelement.map.inc.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <?php
  2. /**
  3. * @package modx
  4. * @subpackage sources.mysql
  5. */
  6. $xpdo_meta_map['modMediaSourceElement']= array (
  7. 'package' => 'modx.sources',
  8. 'version' => '1.1',
  9. 'table' => 'media_sources_elements',
  10. 'extends' => 'xPDOObject',
  11. 'tableMeta' =>
  12. array (
  13. 'engine' => 'InnoDB',
  14. ),
  15. 'fields' =>
  16. array (
  17. 'source' => 0,
  18. 'object_class' => 'modTemplateVar',
  19. 'object' => 0,
  20. 'context_key' => 'web',
  21. ),
  22. 'fieldMeta' =>
  23. array (
  24. 'source' =>
  25. array (
  26. 'dbtype' => 'int',
  27. 'precision' => '11',
  28. 'attributes' => 'unsigned',
  29. 'phptype' => 'integer',
  30. 'null' => false,
  31. 'default' => 0,
  32. 'index' => 'pk',
  33. ),
  34. 'object_class' =>
  35. array (
  36. 'dbtype' => 'varchar',
  37. 'precision' => '100',
  38. 'phptype' => 'string',
  39. 'null' => false,
  40. 'default' => 'modTemplateVar',
  41. 'index' => 'pk',
  42. ),
  43. 'object' =>
  44. array (
  45. 'dbtype' => 'int',
  46. 'precision' => '11',
  47. 'attributes' => 'unsigned',
  48. 'phptype' => 'integer',
  49. 'null' => false,
  50. 'default' => 0,
  51. 'index' => 'pk',
  52. ),
  53. 'context_key' =>
  54. array (
  55. 'dbtype' => 'varchar',
  56. 'precision' => '100',
  57. 'phptype' => 'string',
  58. 'null' => false,
  59. 'default' => 'web',
  60. 'index' => 'pk',
  61. ),
  62. ),
  63. 'indexes' =>
  64. array (
  65. 'PRIMARY' =>
  66. array (
  67. 'alias' => 'PRIMARY',
  68. 'primary' => true,
  69. 'unique' => true,
  70. 'type' => 'BTREE',
  71. 'columns' =>
  72. array (
  73. 'source' =>
  74. array (
  75. 'length' => '',
  76. 'collation' => 'A',
  77. 'null' => false,
  78. ),
  79. 'object' =>
  80. array (
  81. 'length' => '',
  82. 'collation' => 'A',
  83. 'null' => false,
  84. ),
  85. 'object_class' =>
  86. array (
  87. 'length' => '',
  88. 'collation' => 'A',
  89. 'null' => false,
  90. ),
  91. 'context_key' =>
  92. array (
  93. 'length' => '',
  94. 'collation' => 'A',
  95. 'null' => false,
  96. ),
  97. ),
  98. ),
  99. ),
  100. 'aggregates' =>
  101. array (
  102. 'Source' =>
  103. array (
  104. 'class' => 'sources.modMediaSource',
  105. 'local' => 'source',
  106. 'foreign' => 'id',
  107. 'cardinality' => 'one',
  108. 'owner' => 'foreign',
  109. ),
  110. 'Element' =>
  111. array (
  112. 'class' => 'modElement',
  113. 'local' => 'object',
  114. 'foreign' => 'id',
  115. 'cardinality' => 'one',
  116. 'owner' => 'foreign',
  117. ),
  118. 'Context' =>
  119. array (
  120. 'class' => 'modContext',
  121. 'local' => 'context_key',
  122. 'foreign' => 'key',
  123. 'cardinality' => 'one',
  124. 'owner' => 'foreign',
  125. ),
  126. ),
  127. );