modlexiconentry.map.inc.php 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. <?php
  2. /**
  3. * @package modx
  4. * @subpackage mysql
  5. */
  6. $xpdo_meta_map['modLexiconEntry']= array (
  7. 'package' => 'modx',
  8. 'version' => '1.1',
  9. 'table' => 'lexicon_entries',
  10. 'extends' => 'xPDOSimpleObject',
  11. 'tableMeta' =>
  12. array (
  13. 'engine' => 'InnoDB',
  14. ),
  15. 'fields' =>
  16. array (
  17. 'name' => '',
  18. 'value' => '',
  19. 'topic' => 'default',
  20. 'namespace' => 'core',
  21. 'language' => 'en',
  22. 'createdon' => NULL,
  23. 'editedon' => NULL,
  24. ),
  25. 'fieldMeta' =>
  26. array (
  27. 'name' =>
  28. array (
  29. 'dbtype' => 'varchar',
  30. 'precision' => '191',
  31. 'phptype' => 'string',
  32. 'null' => false,
  33. 'default' => '',
  34. 'index' => 'index',
  35. ),
  36. 'value' =>
  37. array (
  38. 'dbtype' => 'text',
  39. 'phptype' => 'string',
  40. 'null' => false,
  41. 'default' => '',
  42. ),
  43. 'topic' =>
  44. array (
  45. 'dbtype' => 'varchar',
  46. 'precision' => '191',
  47. 'phptype' => 'string',
  48. 'null' => false,
  49. 'default' => 'default',
  50. 'index' => 'index',
  51. ),
  52. 'namespace' =>
  53. array (
  54. 'dbtype' => 'varchar',
  55. 'precision' => '40',
  56. 'phptype' => 'string',
  57. 'null' => false,
  58. 'default' => 'core',
  59. 'index' => 'index',
  60. ),
  61. 'language' =>
  62. array (
  63. 'dbtype' => 'varchar',
  64. 'precision' => '20',
  65. 'phptype' => 'string',
  66. 'null' => false,
  67. 'default' => 'en',
  68. 'index' => 'index',
  69. ),
  70. 'createdon' =>
  71. array (
  72. 'dbtype' => 'datetime',
  73. 'phptype' => 'datetime',
  74. ),
  75. 'editedon' =>
  76. array (
  77. 'dbtype' => 'timestamp',
  78. 'phptype' => 'timestamp',
  79. 'null' => true,
  80. 'default' => NULL,
  81. 'attributes' => 'ON UPDATE CURRENT_TIMESTAMP',
  82. ),
  83. ),
  84. 'indexes' =>
  85. array (
  86. 'name' =>
  87. array (
  88. 'alias' => 'name',
  89. 'primary' => false,
  90. 'unique' => false,
  91. 'type' => 'BTREE',
  92. 'columns' =>
  93. array (
  94. 'name' =>
  95. array (
  96. 'length' => '',
  97. 'collation' => 'A',
  98. 'null' => false,
  99. ),
  100. ),
  101. ),
  102. 'topic' =>
  103. array (
  104. 'alias' => 'topic',
  105. 'primary' => false,
  106. 'unique' => false,
  107. 'type' => 'BTREE',
  108. 'columns' =>
  109. array (
  110. 'topic' =>
  111. array (
  112. 'length' => '',
  113. 'collation' => 'A',
  114. 'null' => false,
  115. ),
  116. ),
  117. ),
  118. 'namespace' =>
  119. array (
  120. 'alias' => 'namespace',
  121. 'primary' => false,
  122. 'unique' => false,
  123. 'type' => 'BTREE',
  124. 'columns' =>
  125. array (
  126. 'namespace' =>
  127. array (
  128. 'length' => '',
  129. 'collation' => 'A',
  130. 'null' => false,
  131. ),
  132. ),
  133. ),
  134. 'language' =>
  135. array (
  136. 'alias' => 'language',
  137. 'primary' => false,
  138. 'unique' => false,
  139. 'type' => 'BTREE',
  140. 'columns' =>
  141. array (
  142. 'language' =>
  143. array (
  144. 'length' => '',
  145. 'collation' => 'A',
  146. 'null' => false,
  147. ),
  148. ),
  149. ),
  150. ),
  151. 'aggregates' =>
  152. array (
  153. 'Namespace' =>
  154. array (
  155. 'class' => 'modNamespace',
  156. 'local' => 'namespace',
  157. 'foreign' => 'name',
  158. 'cardinality' => 'one',
  159. 'owner' => 'foreign',
  160. ),
  161. ),
  162. );