modpluginevent.map.inc.php 2.5 KB

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