modscript.map.inc.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <?php
  2. /**
  3. * @package modx
  4. * @subpackage mysql
  5. */
  6. $xpdo_meta_map['modScript']= array (
  7. 'package' => 'modx',
  8. 'version' => '1.1',
  9. 'table' => 'site_script',
  10. 'extends' => 'modElement',
  11. 'tableMeta' =>
  12. array (
  13. 'engine' => 'InnoDB',
  14. ),
  15. 'fields' =>
  16. array (
  17. 'name' => '',
  18. 'description' => '',
  19. 'editor_type' => 0,
  20. 'category' => 0,
  21. ),
  22. 'fieldMeta' =>
  23. array (
  24. 'name' =>
  25. array (
  26. 'dbtype' => 'varchar',
  27. 'precision' => '50',
  28. 'phptype' => 'string',
  29. 'null' => false,
  30. 'default' => '',
  31. 'index' => 'unique',
  32. ),
  33. 'description' =>
  34. array (
  35. 'dbtype' => 'varchar',
  36. 'precision' => '191',
  37. 'phptype' => 'string',
  38. 'null' => false,
  39. 'default' => '',
  40. ),
  41. 'editor_type' =>
  42. array (
  43. 'dbtype' => 'int',
  44. 'precision' => '11',
  45. 'phptype' => 'integer',
  46. 'null' => false,
  47. 'default' => 0,
  48. ),
  49. 'category' =>
  50. array (
  51. 'dbtype' => 'int',
  52. 'precision' => '11',
  53. 'phptype' => 'integer',
  54. 'null' => false,
  55. 'default' => 0,
  56. 'index' => 'fk',
  57. ),
  58. ),
  59. 'indexes' =>
  60. array (
  61. 'name' =>
  62. array (
  63. 'alias' => 'name',
  64. 'primary' => false,
  65. 'unique' => true,
  66. 'type' => 'BTREE',
  67. 'columns' =>
  68. array (
  69. 'name' =>
  70. array (
  71. 'length' => '',
  72. 'collation' => 'A',
  73. 'null' => false,
  74. ),
  75. ),
  76. ),
  77. 'category' =>
  78. array (
  79. 'alias' => 'category',
  80. 'primary' => false,
  81. 'unique' => false,
  82. 'type' => 'BTREE',
  83. 'columns' =>
  84. array (
  85. 'category' =>
  86. array (
  87. 'length' => '',
  88. 'collation' => 'A',
  89. 'null' => false,
  90. ),
  91. ),
  92. ),
  93. ),
  94. 'aggregates' =>
  95. array (
  96. 'Category' =>
  97. array (
  98. 'class' => 'modCategory',
  99. 'key' => 'id',
  100. 'local' => 'category',
  101. 'foreign' => 'id',
  102. 'cardinality' => 'one',
  103. 'owner' => 'foreign',
  104. ),
  105. ),
  106. );