modcontextsetting.map.inc.php 2.4 KB

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