modcontextsetting.map.inc.php 2.3 KB

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