]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - modules/Administration/vardefs.php
Release 6.5.0
[Github/sugarcrm.git] / modules / Administration / vardefs.php
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
38 $dictionary['Administration'] = array('table' => 'config', 'comment' => 'System table containing system-wide definitions'
39                                ,'fields' => array (
40   'category' =>
41   array (
42     'name' => 'category',
43     'vname' => 'LBL_LIST_SYMBOL',
44     'type' => 'varchar',
45     'len' => '32',
46     'comment' => 'Settings are grouped under this category; arbitraily defined based on requirements'
47   ),
48   'name' =>
49   array (
50     'name' => 'name',
51     'vname' => 'LBL_LIST_NAME',
52     'type' => 'varchar',
53     'len' => '32',
54     'comment' => 'The name given to the setting'
55   ),
56   'value' =>
57   array (
58     'name' => 'value',
59     'vname' => 'LBL_LIST_RATE',
60     'type' => 'text',
61     'comment' => 'The value given to the setting'
62   ),
63
64 ), 'indices'=>array( array('name'=>'idx_config_cat', 'type'=>'index',  'fields'=>array('category')),)
65                             );
66
67 $dictionary['UpgradeHistory'] = array(
68     'table'  => 'upgrade_history', 'comment' => 'Tracks Sugar upgrades made over time; used by Upgrade Wizard and Module Loader',
69     'fields' => array (
70         'id' => array (
71                 'name'       => 'id',
72                 'type'       => 'id',
73                 'required'   => true,
74                 'reportable' => false,
75                     'comment' => 'Unique identifier'
76         ),
77         'filename' => array (
78                 'name' => 'filename',
79                 'type' => 'varchar',
80                 'len' => '255',
81                     'comment' => 'Cached filename containing the upgrade scripts and content'
82         ),
83         'md5sum' => array (
84                 'name' => 'md5sum',
85                 'type' => 'varchar',
86                 'len' => '32',
87                     'comment' => 'The MD5 checksum of the upgrade file'
88         ),
89         'type' => array (
90                 'name' => 'type',
91                 'type' => 'varchar',
92                 'len' => '30',
93                     'comment' => 'The upgrade type (module, patch, theme, etc)'
94         ),
95         'status' => array (
96                 'name' => 'status',
97                 'type' => 'varchar',
98                 'len' => '50',
99                     'comment' => 'The status of the upgrade (ex:  "installed")',
100         ),
101         'version' => array (
102                 'name' => 'version',
103                 'type' => 'varchar',
104                 'len' => '64',
105                     'comment' => 'Version as contained in manifest file'
106         ),
107                 'name' => array (
108                 'name'  => 'name',
109                 'type'  => 'varchar',
110                 'len'   => '255',
111         ),
112                 'description' => array (
113                 'name'  => 'description',
114                 'type'  => 'text',
115         ),
116         'id_name' => array (
117                 'name' => 'id_name',
118                 'type' => 'varchar',
119                 'len' => '255',
120                     'comment' => 'The unique id of the module'
121         ),
122         'manifest' => array (
123                 'name' => 'manifest',
124                 'type' => 'longtext',
125                     'comment' => 'A serialized copy of the manifest file.'
126         ),
127         'date_entered' => array (
128                 'name' => 'date_entered',
129                 'type' => 'datetime',
130                 'required'=>true,
131                     'comment' => 'Date of upgrade or module load'
132         ),
133         'enabled' => array(
134                                       'name' => 'enabled',
135                                       'type' => 'bool',
136                                       'len'  => '1',
137                                       'default'   => '1',
138         ),
139     ),
140
141     'indices' => array(
142         array('name'=>'upgrade_history_pk',     'type'=>'primary', 'fields'=>array('id')),
143         array('name'=>'upgrade_history_md5_uk', 'type'=>'unique',  'fields'=>array('md5sum')),
144
145     ),
146 );
147
148
149 ?>