PageRenderTime 53ms CodeModel.GetById 28ms RepoModel.GetById 0ms app.codeStats 0ms

/modules/Administration/vardefs.php

https://bitbucket.org/cviolette/sugarcrm
PHP | 149 lines | 108 code | 7 blank | 34 comment | 2 complexity | a4b3781befd4731cfacc25e7ab51380d MD5 | raw file
Possible License(s): LGPL-2.1, MPL-2.0-no-copyleft-exception, BSD-3-Clause
  1. <?php
  2. if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
  3. /*********************************************************************************
  4. * SugarCRM Community Edition is a customer relationship management program developed by
  5. * SugarCRM, Inc. Copyright (C) 2004-2012 SugarCRM Inc.
  6. *
  7. * This program is free software; you can redistribute it and/or modify it under
  8. * the terms of the GNU Affero General Public License version 3 as published by the
  9. * Free Software Foundation with the addition of the following permission added
  10. * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
  11. * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
  12. * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
  13. *
  14. * This program is distributed in the hope that it will be useful, but WITHOUT
  15. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  16. * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
  17. * details.
  18. *
  19. * You should have received a copy of the GNU Affero General Public License along with
  20. * this program; if not, see http://www.gnu.org/licenses or write to the Free
  21. * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  22. * 02110-1301 USA.
  23. *
  24. * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
  25. * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
  26. *
  27. * The interactive user interfaces in modified source and object code versions
  28. * of this program must display Appropriate Legal Notices, as required under
  29. * Section 5 of the GNU Affero General Public License version 3.
  30. *
  31. * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
  32. * these Appropriate Legal Notices must retain the display of the "Powered by
  33. * SugarCRM" logo. If the display of the logo is not reasonably feasible for
  34. * technical reasons, the Appropriate Legal Notices must display the words
  35. * "Powered by SugarCRM".
  36. ********************************************************************************/
  37. $dictionary['Administration'] = array('table' => 'config', 'comment' => 'System table containing system-wide definitions'
  38. ,'fields' => array (
  39. 'category' =>
  40. array (
  41. 'name' => 'category',
  42. 'vname' => 'LBL_LIST_SYMBOL',
  43. 'type' => 'varchar',
  44. 'len' => '32',
  45. 'comment' => 'Settings are grouped under this category; arbitraily defined based on requirements'
  46. ),
  47. 'name' =>
  48. array (
  49. 'name' => 'name',
  50. 'vname' => 'LBL_LIST_NAME',
  51. 'type' => 'varchar',
  52. 'len' => '32',
  53. 'comment' => 'The name given to the setting'
  54. ),
  55. 'value' =>
  56. array (
  57. 'name' => 'value',
  58. 'vname' => 'LBL_LIST_RATE',
  59. 'type' => 'text',
  60. 'comment' => 'The value given to the setting'
  61. ),
  62. ), 'indices'=>array( array('name'=>'idx_config_cat', 'type'=>'index', 'fields'=>array('category')),)
  63. );
  64. $dictionary['UpgradeHistory'] = array(
  65. 'table' => 'upgrade_history', 'comment' => 'Tracks Sugar upgrades made over time; used by Upgrade Wizard and Module Loader',
  66. 'fields' => array (
  67. 'id' => array (
  68. 'name' => 'id',
  69. 'type' => 'id',
  70. 'required' => true,
  71. 'reportable' => false,
  72. 'comment' => 'Unique identifier'
  73. ),
  74. 'filename' => array (
  75. 'name' => 'filename',
  76. 'type' => 'varchar',
  77. 'len' => '255',
  78. 'comment' => 'Cached filename containing the upgrade scripts and content'
  79. ),
  80. 'md5sum' => array (
  81. 'name' => 'md5sum',
  82. 'type' => 'varchar',
  83. 'len' => '32',
  84. 'comment' => 'The MD5 checksum of the upgrade file'
  85. ),
  86. 'type' => array (
  87. 'name' => 'type',
  88. 'type' => 'varchar',
  89. 'len' => '30',
  90. 'comment' => 'The upgrade type (module, patch, theme, etc)'
  91. ),
  92. 'status' => array (
  93. 'name' => 'status',
  94. 'type' => 'varchar',
  95. 'len' => '50',
  96. 'comment' => 'The status of the upgrade (ex: "installed")',
  97. ),
  98. 'version' => array (
  99. 'name' => 'version',
  100. 'type' => 'varchar',
  101. 'len' => '64',
  102. 'comment' => 'Version as contained in manifest file'
  103. ),
  104. 'name' => array (
  105. 'name' => 'name',
  106. 'type' => 'varchar',
  107. 'len' => '255',
  108. ),
  109. 'description' => array (
  110. 'name' => 'description',
  111. 'type' => 'text',
  112. ),
  113. 'id_name' => array (
  114. 'name' => 'id_name',
  115. 'type' => 'varchar',
  116. 'len' => '255',
  117. 'comment' => 'The unique id of the module'
  118. ),
  119. 'manifest' => array (
  120. 'name' => 'manifest',
  121. 'type' => 'longtext',
  122. 'comment' => 'A serialized copy of the manifest file.'
  123. ),
  124. 'date_entered' => array (
  125. 'name' => 'date_entered',
  126. 'type' => 'datetime',
  127. 'required'=>true,
  128. 'comment' => 'Date of upgrade or module load'
  129. ),
  130. 'enabled' => array(
  131. 'name' => 'enabled',
  132. 'type' => 'bool',
  133. 'len' => '1',
  134. 'default' => '1',
  135. ),
  136. ),
  137. 'indices' => array(
  138. array('name'=>'upgrade_history_pk', 'type'=>'primary', 'fields'=>array('id')),
  139. array('name'=>'upgrade_history_md5_uk', 'type'=>'unique', 'fields'=>array('md5sum')),
  140. ),
  141. );
  142. ?>