source: branches/2.5/phpgwapi/setup/tables_current.inc.php @ 7917

Revision 7917, 18.9 KB checked in by douglas, 11 years ago (diff)

Ticket #3356 - Problema ao utilizar o expresso com IPv6

  • Property svn:eol-style set to native
  • Property svn:executable set to *
Line 
1<?php
2        /**************************************************************************\
3        * phpGroupWare                                                             *
4        * http://www.phpgroupware.org                                              *
5        * --------------------------------------------                             *
6        *  This program is free software; you can redistribute it and/or modify it *
7        *  under the terms of the GNU General Public License as published by the   *
8        *  Free Software Foundation; either version 2 of the License, or (at your  *
9        *  option) any later version.                                              *
10        \**************************************************************************/
11
12
13        $phpgw_baseline = array(
14                'phpgw_config' => array(
15                        'fd' => array(
16                                'config_app' => array('type' => 'varchar','precision' => '50','nullable' => False),
17                                'config_name' => array('type' => 'varchar','precision' => '255','nullable' => False),
18                                'config_value' => array('type' => 'text')
19                        ),
20                        'pk' => array('config_app','config_name'),
21                        'fk' => array(),
22                        'ix' => array(),
23                        'uc' => array()
24                ),
25                'phpgw_applications' => array(
26                        'fd' => array(
27                                'app_id' => array('type' => 'auto','precision' => '4','nullable' => False),
28                                'app_name' => array('type' => 'varchar','precision' => '25','nullable' => False),
29                                'app_enabled' => array('type' => 'int','precision' => '4','nullable' => False),
30                                'app_order' => array('type' => 'int','precision' => '4','nullable' => False),
31                                'app_tables' => array('type' => 'text','nullable' => False),
32                                'app_version' => array('type' => 'varchar','precision' => '20','nullable' => False,'default' => '0.0')
33                        ),
34                        'pk' => array('app_id'),
35                        'fk' => array(),
36                        'ix' => array(array('app_enabled','app_order')),
37                        'uc' => array('app_name')
38                ),
39                'phpgw_acl' => array(
40                        'fd' => array(
41                                'acl_appname' => array('type' => 'varchar','precision' => '50','nullable' => False),
42                                'acl_location' => array('type' => 'varchar','precision' => '255','nullable' => False),
43                                'acl_account' => array('type' => 'int','precision' => '4','nullable' => False),
44                                'acl_rights' => array('type' => 'int','precision' => '4')
45                        ),
46                        'pk' => array('acl_appname','acl_location','acl_account'),
47                        'fk' => array(),
48                        'ix' => array('acl_account',array('acl_location','acl_account'),array('acl_appname','acl_account')),
49                        'uc' => array()
50                ),
51                'phpgw_accounts' => array(
52                        'fd' => array(
53                                'account_id' => array('type' => 'auto','nullable' => False),
54                                'account_lid' => array('type' => 'varchar','precision' => '25','nullable' => False),
55                                'account_pwd' => array('type' => 'varchar','precision' => '100','nullable' => False),
56                                'account_firstname' => array('type' => 'varchar','precision' => '50'),
57                                'account_lastname' => array('type' => 'varchar','precision' => '50'),
58                                'account_lastlogin' => array('type' => 'int','precision' => '4'),
59                                'account_lastloginfrom' => array('type' => 'varchar','precision' => '255'),
60                                'account_lastpwd_change' => array('type' => 'int','precision' => '4'),
61                                'account_status' => array('type' => 'char','precision' => '1','nullable' => False,'default' => 'A'),
62                                'account_expires' => array('type' => 'int','precision' => '4'),
63                                'account_type' => array('type' => 'char','precision' => '1'),
64                                'person_id' => array('type' => 'int','precision' => '4'),
65                                'account_primary_group' => array('type' => 'int','precision' => '4','nullable' => False,'default' => '0'),
66                                'account_email' => array('type' => 'varchar','precision' => '100')
67                        ),
68                        'pk' => array('account_id'),
69                        'fk' => array(),
70                        'ix' => array(),
71                        'uc' => array('account_lid')
72                ),
73                'phpgw_preferences' => array(
74                        'fd' => array(
75                                'preference_owner' => array('type' => 'int','precision' => '4','nullable' => False),
76                                'preference_app' => array('type' => 'varchar','precision' => '25','nullable' => False),
77                                'preference_value' => array('type' => 'text','nullable' => False)
78                        ),
79                        'pk' => array('preference_owner','preference_app'),
80                        'fk' => array(),
81                        'ix' => array(),
82                        'uc' => array()
83                ),
84                'phpgw_sessions' => array(
85                        'fd' => array(
86                                'session_id' => array('type' => 'varchar','precision' => '128','nullable' => False),
87                                'session_lid' => array('type' => 'varchar','precision' => '128'),
88                                'session_ip' => array('type' => 'varchar','precision' => '32'),
89                                'session_logintime' => array('type' => 'int','precision' => '4'),
90                                'session_dla' => array('type' => 'int','precision' => '4'),
91                                'session_action' => array('type' => 'varchar','precision' => '255'),
92                                'session_flags' => array('type' => 'char','precision' => '2')
93                        ),
94                        'pk' => array(),
95                        'fk' => array(),
96                        'ix' => array(array('session_flags','session_dla')),
97                        'uc' => array('session_id')
98                ),
99                'phpgw_app_sessions' => array(
100                        'fd' => array(
101                                'sessionid' => array('type' => 'varchar','precision' => '128','nullable' => False),
102                                'loginid' => array('type' => 'int','precision' => '4','nullable' => False),
103                                'app' => array('type' => 'varchar','precision' => '25','nullable' => False),
104                                'location' => array('type' => 'varchar','precision' => '128','nullable' => False),
105                                'content' => array('type' => 'longtext'),
106                                'session_dla' => array('type' => 'int','precision' => '4')
107                        ),
108                        'pk' => array('sessionid','loginid','app','location'),
109                        'fk' => array(),
110                        'ix' => array(),
111                        'uc' => array()
112                ),
113                'phpgw_access_log' => array(
114                        'fd' => array(
115                                'sessionid' => array('type' => 'char','precision' => '32','nullable' => False),
116                                'loginid' => array('type' => 'varchar','precision' => '30','nullable' => False),
117                                'ip' => array('type' => 'varchar','precision' => '255','nullable' => False),
118                                'li' => array('type' => 'int','precision' => '4','nullable' => False),
119                                'lo' => array('type' => 'int','precision' => '4','nullable' => True,'default' => '0'),
120                                'account_id' => array('type' => 'int','precision' => '4','nullable' => False,'default' => '0'),
121                                'browser' => array('type' => 'varchar','precision' => '200')
122                        ),
123                        'pk' => array(),
124                        'fk' => array(),
125                        'ix' => array(),
126                        'uc' => array()
127                ),
128                'phpgw_hooks' => array(
129                        'fd' => array(
130                                'hook_id' => array('type' => 'auto','nullable' => False),
131                                'hook_appname' => array('type' => 'varchar','precision' => '255'),
132                                'hook_location' => array('type' => 'varchar','precision' => '255'),
133                                'hook_filename' => array('type' => 'varchar','precision' => '255')
134                        ),
135                        'pk' => array('hook_id'),
136                        'ix' => array(),
137                        'fk' => array(),
138                        'uc' => array()
139                ),
140                'phpgw_languages' => array(
141                        'fd' => array(
142                                'lang_id' => array('type' => 'varchar','precision' => '5','nullable' => False),
143                                'lang_name' => array('type' => 'varchar','precision' => '50','nullable' => False)
144                        ),
145                        'pk' => array('lang_id'),
146                        'fk' => array(),
147                        'ix' => array(),
148                        'uc' => array()
149                ),
150                'phpgw_lang' => array(
151                        'fd' => array(
152                                'lang' => array('type' => 'varchar','precision' => '5','nullable' => False,'default' => ''),
153                                'app_name' => array('type' => 'varchar','precision' => '100','nullable' => False,'default' => 'common'),
154                                'message_id' => array('type' => 'varchar','precision' => '255','nullable' => False,'default' => ''),
155                                'content' => array('type' => 'text')
156                        ),
157                        'pk' => array('lang','app_name','message_id'),
158                        'fk' => array(),
159                        'ix' => array(),
160                        'uc' => array()
161                ),
162                'phpgw_nextid' => array(
163                        'fd' => array(
164                                'id' => array('type' => 'int','precision' => '4','nullable' => True),
165                                'appname' => array('type' => 'varchar','precision' => '25','nullable' => False)
166                        ),
167                        'pk' => array(),
168                        'fk' => array(),
169                        'ix' => array(),
170                        'uc' => array('appname')
171                ),
172                'phpgw_categories' => array(
173                        'fd' => array(
174                                'cat_id' => array('type' => 'auto','precision' => '4','nullable' => False),
175                                'cat_main' => array('type' => 'int','precision' => '4','nullable' => False,'default' => '0'),
176                                'cat_parent' => array('type' => 'int','precision' => '4','nullable' => False,'default' => '0'),
177                                'cat_level' => array('type' => 'int','precision' => '2','nullable' => False,'default' => '0'),
178                                'cat_owner' => array('type' => 'int','precision' => '4','nullable' => False,'default' => '0'),
179                                'cat_access' => array('type' => 'varchar','precision' => '7'),
180                                'cat_appname' => array('type' => 'varchar','precision' => '50','nullable' => False),
181                                'cat_name' => array('type' => 'varchar','precision' => '150','nullable' => False),
182                                'cat_description' => array('type' => 'varchar','precision' => '255','nullable' => False),
183                                'cat_data' => array('type' => 'text'),
184                                'last_mod' => array('type' => 'int','precision' => '8','nullable' => False)
185                        ),
186                        'pk' => array('cat_id'),
187                        'fk' => array(),
188                        'ix' => array(array('cat_appname','cat_owner','cat_parent','cat_level')),
189                        'uc' => array()
190                ),
191                'phpgw_addressbook' => array(
192                        'fd' => array(
193                                'id' => array('type' => 'auto','nullable' => False),
194                                'lid' => array('type' => 'varchar','precision' => '32'),
195                                'tid' => array('type' => 'char','precision' => '1'),
196                                'owner' => array('type' => 'int','precision' => '8'),
197                                'access' => array('type' => 'varchar','precision' => '7'),
198                                'cat_id' => array('type' => 'varchar','precision' => '32'),
199                                'fn' => array('type' => 'varchar','precision' => '64'),
200                                'n_family' => array('type' => 'varchar','precision' => '64'),
201                                'n_given' => array('type' => 'varchar','precision' => '64'),
202                                'n_middle' => array('type' => 'varchar','precision' => '64'),
203                                'n_prefix' => array('type' => 'varchar','precision' => '64'),
204                                'n_suffix' => array('type' => 'varchar','precision' => '64'),
205                                'sound' => array('type' => 'varchar','precision' => '64'),
206                                'bday' => array('type' => 'varchar','precision' => '32'),
207                                'note' => array('type' => 'text'),
208                                'tz' => array('type' => 'varchar','precision' => '8'),
209                                'geo' => array('type' => 'varchar','precision' => '32'),
210                                'url' => array('type' => 'varchar','precision' => '128'),
211                                'pubkey' => array('type' => 'text'),
212                                'org_name' => array('type' => 'varchar','precision' => '64'),
213                                'org_unit' => array('type' => 'varchar','precision' => '64'),
214                                'title' => array('type' => 'varchar','precision' => '64'),
215                                'adr_one_street' => array('type' => 'varchar','precision' => '64'),
216                                'adr_one_locality' => array('type' => 'varchar','precision' => '64'),
217                                'adr_one_region' => array('type' => 'varchar','precision' => '64'),
218                                'adr_one_postalcode' => array('type' => 'varchar','precision' => '64'),
219                                'adr_one_countryname' => array('type' => 'varchar','precision' => '64'),
220                                'adr_one_type' => array('type' => 'varchar','precision' => '32'),
221                                'label' => array('type' => 'text'),
222                                'adr_two_street' => array('type' => 'varchar','precision' => '64'),
223                                'adr_two_locality' => array('type' => 'varchar','precision' => '64'),
224                                'adr_two_region' => array('type' => 'varchar','precision' => '64'),
225                                'adr_two_postalcode' => array('type' => 'varchar','precision' => '64'),
226                                'adr_two_countryname' => array('type' => 'varchar','precision' => '64'),
227                                'adr_two_type' => array('type' => 'varchar','precision' => '32'),
228                                'tel_work' => array('type' => 'varchar','precision' => '40','nullable' => False,'default' => '+1 (000) 000-0000'),
229                                'tel_home' => array('type' => 'varchar','precision' => '40','nullable' => False,'default' => '+1 (000) 000-0000'),
230                                'tel_voice' => array('type' => 'varchar','precision' => '40','nullable' => False,'default' => '+1 (000) 000-0000'),
231                                'tel_fax' => array('type' => 'varchar','precision' => '40','nullable' => False,'default' => '+1 (000) 000-0000'),
232                                'tel_msg' => array('type' => 'varchar','precision' => '40','nullable' => False,'default' => '+1 (000) 000-0000'),
233                                'tel_cell' => array('type' => 'varchar','precision' => '40','nullable' => False,'default' => '+1 (000) 000-0000'),
234                                'tel_pager' => array('type' => 'varchar','precision' => '40','nullable' => False,'default' => '+1 (000) 000-0000'),
235                                'tel_bbs' => array('type' => 'varchar','precision' => '40','nullable' => False,'default' => '+1 (000) 000-0000'),
236                                'tel_modem' => array('type' => 'varchar','precision' => '40','nullable' => False,'default' => '+1 (000) 000-0000'),
237                                'tel_car' => array('type' => 'varchar','precision' => '40','nullable' => False,'default' => '+1 (000) 000-0000'),
238                                'tel_isdn' => array('type' => 'varchar','precision' => '40','nullable' => False,'default' => '+1 (000) 000-0000'),
239                                'tel_video' => array('type' => 'varchar','precision' => '40','nullable' => False,'default' => '+1 (000) 000-0000'),
240                                'tel_prefer' => array('type' => 'varchar','precision' => '32'),
241                                'email' => array('type' => 'varchar','precision' => '64'),
242                                'email_type' => array('type' => 'varchar','precision' => '32','default' => 'INTERNET'),
243                                'email_home' => array('type' => 'varchar','precision' => '64'),
244                                'email_home_type' => array('type' => 'varchar','precision' => '32','default' => 'INTERNET'),
245                                'last_mod' => array('type' => 'int','precision' => '8','nullable' => False)
246                        ),
247                        'pk' => array('id'),
248                        'fk' => array(),
249                        'ix' => array(array('tid','owner','access','n_family','n_given','email'),array('tid','cat_id','owner','access','n_family','n_given','email')),
250                        'uc' => array()
251                ),
252                'phpgw_addressbook_extra' => array(
253                        'fd' => array(
254                                'contact_id' => array('type' => 'int','precision' => '4','nullable' => False),
255                                'contact_owner' => array('type' => 'int','precision' => '8'),
256                                'contact_name' => array('type' => 'varchar','precision' => '255','nullable' => False),
257                                'contact_value' => array('type' => 'text')
258                        ),
259                        'pk' => array('contact_id','contact_name'),
260                        'fk' => array(),
261                        'ix' => array(),
262                        'uc' => array()
263                ),
264                'phpgw_log' => array(
265                        'fd' => array(
266                                'log_id' => array('type' => 'auto','precision' => '4','nullable' => False),
267                                'log_date' => array('type' => 'timestamp','nullable' => False),
268                                'log_user' => array('type' => 'int','precision' => '4','nullable' => False),
269                                'log_app' => array('type' => 'varchar','precision' => '50','nullable' => False),
270                                'log_severity' => array('type' => 'char','precision' => '1','nullable' => False)
271                        ),
272                        'pk' => array('log_id'),
273                        'fk' => array(),
274                        'ix' => array(),
275                        'uc' => array()
276                ),
277                'phpgw_log_msg' => array(
278                        'fd' => array(
279                                'log_msg_log_id' => array('type' => 'int','precision' => '4','nullable' => False),
280                                'log_msg_seq_no' => array('type' => 'int','precision' => '4','nullable' => False),
281                                'log_msg_date' => array('type' => 'timestamp','nullable' => False),
282                                'log_msg_tx_fid' => array('type' => 'varchar','precision' => '4','nullable' => True),
283                                'log_msg_tx_id' => array('type' => 'varchar','precision' => '4','nullable' => True),
284                                'log_msg_severity' => array('type' => 'char','precision' => '1','nullable' => False),
285                                'log_msg_code' => array('type' => 'varchar','precision' => '30','nullable' => False),
286                                'log_msg_msg' => array('type' => 'text','nullable' => False),
287                                'log_msg_parms' => array('type' => 'text','nullable' => False),
288                                'log_msg_file' => array('type' => 'varchar','precision' => '255','nullable' => False),
289                                'log_msg_line' => array('type' => 'int','precision' => '4','nullable' => False)
290                        ),
291                        'pk' => array('log_msg_log_id','log_msg_seq_no'),
292                        'fk' => array(),
293                        'ix' => array(),
294                        'uc' => array()
295                ),
296                'phpgw_interserv' => array(
297                        'fd' => array(
298                                'server_id' => array('type' => 'auto','nullable' => False),
299                                'server_name' => array('type' => 'varchar','precision' => '64','nullable' => True),
300                                'server_host' => array('type' => 'varchar','precision' => '255','nullable' => True),
301                                'server_url' => array('type' => 'varchar','precision' => '255','nullable' => True),
302                                'trust_level' => array('type' => 'int','precision' => '4'),
303                                'trust_rel' => array('type' => 'int','precision' => '4'),
304                                'username' => array('type' => 'varchar','precision' => '64','nullable' => True),
305                                'password' => array('type' => 'varchar','precision' => '255','nullable' => True),
306                                'admin_name' => array('type' => 'varchar','precision' => '255','nullable' => True),
307                                'admin_email' => array('type' => 'varchar','precision' => '255','nullable' => True),
308                                'server_mode' => array('type' => 'varchar','precision' => '16','nullable' => False,'default' => 'xmlrpc'),
309                                'server_security' => array('type' => 'varchar','precision' => '16','nullable' => True)
310                        ),
311                        'pk' => array('server_id'),
312                        'fk' => array(),
313                        'ix' => array(),
314                        'uc' => array()
315                ),
316                'phpgw_vfs' => array(
317                        'fd' => array(
318                                'file_id' => array('type' => 'auto','nullable' => False),
319                                'owner_id' => array('type' => 'int','precision' => '4','nullable' => False),
320                                'createdby_id' => array('type' => 'int','precision' => '4'),
321                                'modifiedby_id' => array('type' => 'int','precision' => '4'),
322                                'created' => array('type' => 'timestamp','nullable' => False,'default' => '1970-01-01'),
323                                'modified' => array('type' => 'timestamp'),
324                                'size' => array('type' => 'int','precision' => '4'),
325                                'mime_type' => array('type' => 'varchar','precision' => '64'),
326                                'deleteable' => array('type' => 'char','precision' => '1','default' => 'Y'),
327                                'comment' => array('type' => 'varchar','precision' => '255'),
328                                'app' => array('type' => 'varchar','precision' => '25'),
329                                'directory' => array('type' => 'varchar','precision' => '255'),
330                                'name' => array('type' => 'varchar','precision' => '128','nullable' => False),
331                                'link_directory' => array('type' => 'varchar','precision' => '255'),
332                                'link_name' => array('type' => 'varchar','precision' => '128'),
333                                'version' => array('type' => 'varchar','precision' => '30','nullable' => False,'default' => '0.0.0.0'),
334                                'content' => array('type' => 'longtext')
335                        ),
336                        'pk' => array('file_id'),
337                        'fk' => array(),
338                        'ix' => array(array('directory','name','mime_type')),
339                        'uc' => array()
340                ),
341                'phpgw_history_log' => array(
342                        'fd' => array(
343                                'history_id' => array('type' => 'auto','precision' => '4','nullable' => False),
344                                'history_record_id' => array('type' => 'int','precision' => '4','nullable' => False),
345                                'history_appname' => array('type' => 'varchar','precision' => '64','nullable' => False),
346                                'history_owner' => array('type' => 'int','precision' => '4','nullable' => False),
347                                'history_status' => array('type' => 'char','precision' => '2','nullable' => False),
348                                'history_new_value' => array('type' => 'text','nullable' => False),
349                                'history_timestamp' => array('type' => 'timestamp','nullable' => False,'default' => 'current_timestamp'),
350                                'history_old_value' => array('type' => 'text','nullable' => False)
351                        ),
352                        'pk' => array('history_id'),
353                        'fk' => array(),
354                        'ix' => array(array('history_appname','history_record_id','history_status','history_timestamp')),
355                        'uc' => array()
356                ),
357                'phpgw_async' => array(
358                        'fd' => array(
359                                'id' => array('type' => 'varchar','precision' => '255','nullable' => False),
360                                'next' => array('type' => 'int','precision' => '4','nullable' => False),
361                                'times' => array('type' => 'varchar','precision' => '255','nullable' => False),
362                                'method' => array('type' => 'varchar','precision' => '80','nullable' => False),
363                                'data' => array('type' => 'text','nullable' => False),
364                                'account_id' => array('type' => 'int','precision' => '4','nullable' => False,'default' => '0')
365                        ),
366                        'pk' => array('id'),
367                        'fk' => array(),
368                        'ix' => array(),
369                        'uc' => array()
370                )
371        );
372?>
Note: See TracBrowser for help on using the repository browser.