source: branches/2.3/phpgwapi/setup/tables_update.inc.php @ 5156

Revision 5156, 4.9 KB checked in by brunocosta, 12 years ago (diff)

Ticket #2142 - Ajuste do setup para publicação da versão 2.3.0

  • Property svn:eol-style set to native
  • Property svn:executable set to *
RevLine 
[2]1<?php
2        /**************************************************************************\
3        * phpGroupWare - Setup                                                     *
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
[5156]12        // Since Expresso 1.2 using API EgroupWare 1.0.0.007
[1036]13        $test[] = '1.0.0.007';
14        function phpgwapi_upgrade1_0_0_007()
15        {
16
17                global $setup_info,$phpgw_setup;
18
19                $phpgw_setup->oProc->AddColumn('phpgw_access_log','browser', array ('type' => 'varchar', 'precision' => 200));
20                $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.0.0.008';
21                return $GLOBALS['setup_info']['phpgwapi']['currentver'];
22
23        }
[5156]24
[1323]25        $test[] = '1.0.0.008';
26        function phpgwapi_upgrade1_0_0_008()
27        {
28                $GLOBALS['setup_info']['phpgwapi']['currentver'] = '2.0.0.pre-alpha';
29                return $GLOBALS['setup_info']['phpgwapi']['currentver'];
[1036]30
[1323]31        }
32
33        $test[] = '2.0.0.pre-alpha';
34        function phpgwapi_upgrade2_0_0_prealpha()
35        {
36                $GLOBALS['setup_info']['phpgwapi']['currentver'] = '2.0.000';
37                return $GLOBALS['setup_info']['phpgwapi']['currentver'];
38        }
39        $test[] = '2.0.000';
40        function phpgwapi_upgrade2_0_000()
41        {
42                $GLOBALS['setup_info']['phpgwapi']['currentver'] = '2.0.001';
43                return $GLOBALS['setup_info']['phpgwapi']['currentver'];
44        }
[1728]45        $test[] = '2.0.001';
46        function phpgwapi_upgrade2_0_001()
47        {
[1835]48                $GLOBALS['setup_info']['phpgwapi']['currentver'] = '2.0.002';
49                return $GLOBALS['setup_info']['phpgwapi']['currentver'];
[5156]50        }
[1835]51        $test[] = '2.0.002';
52        function phpgwapi_upgrade2_0_002()
53        {
[3031]54                $GLOBALS['setup_info']['phpgwapi']['currentver'] = '2.0.003';
55                return $GLOBALS['setup_info']['phpgwapi']['currentver'];
56        }
57        $test[] = '2.0.003';
58        function phpgwapi_upgrade2_0_003()
59        {
60                $GLOBALS['setup_info']['phpgwapi']['currentver'] = '2.0.004';
61                return $GLOBALS['setup_info']['phpgwapi']['currentver'];
62        }
63        $test[] = '2.0.004';
64        function phpgwapi_upgrade2_0_004()
65        {
66                $GLOBALS['setup_info']['phpgwapi']['currentver'] = '2.0.005';
67                return $GLOBALS['setup_info']['phpgwapi']['currentver'];
68        }
69        $test[] = '2.0.005';
70        function phpgwapi_upgrade2_0_005()
71        {
72                $GLOBALS['setup_info']['phpgwapi']['currentver'] = '2.0.006';
73                return $GLOBALS['setup_info']['phpgwapi']['currentver'];
[5156]74        }
[3031]75        $test[] = '2.0.006';
76        function phpgwapi_upgrade2_0_006()
77        {
78                $GLOBALS['setup_info']['phpgwapi']['currentver'] = '2.0.007';
79                return $GLOBALS['setup_info']['phpgwapi']['currentver'];
[5156]80        }
[3031]81        $test[] = '2.0.007';
82        function phpgwapi_upgrade2_0_007()
83        {
[3765]84                $GLOBALS['setup_info']['phpgwapi']['currentver'] = '2.0.008';
85                return $GLOBALS['setup_info']['phpgwapi']['currentver'];
[5156]86        }
[3765]87        $test[] = '2.0.008';
88        function phpgwapi_upgrade2_0_008()
89        {
90                $GLOBALS['setup_info']['phpgwapi']['currentver'] = '2.0.009';
91                return $GLOBALS['setup_info']['phpgwapi']['currentver'];
92        }
93        $test[] = '2.0.009';
94        function phpgwapi_upgrade2_0_009()
95        {
[3857]96                $GLOBALS['setup_info']['phpgwapi']['currentver'] = '2.0.010';
97                return $GLOBALS['setup_info']['phpgwapi']['currentver'];
[5156]98        }
[3857]99        $test[] = '2.0.010';
100        function phpgwapi_upgrade2_0_010()
101        {
[1728]102                $GLOBALS['setup_info']['phpgwapi']['currentver'] = '2.1.000';
103                return $GLOBALS['setup_info']['phpgwapi']['currentver'];
[5156]104        }
[3031]105        $test[] = '2.1.000';
106        function phpgwapi_upgrade2_1_000()
107        {
108                $GLOBALS['setup_info']['phpgwapi']['currentver'] = '2.2.000';
109                return $GLOBALS['setup_info']['phpgwapi']['currentver'];
[1728]110        }
[4186]111        $test[] = '2.2.000';
112        function phpgwapi_upgrade2_2_000()
113        {
[5156]114                $GLOBALS['setup_info']['phpgwapi']['currentver'] = '2.2.1';
[4186]115                return $GLOBALS['setup_info']['phpgwapi']['currentver'];
116        }
[5156]117        $test[] = '2.2.1';
[4294]118        function phpgwapi_upgrade2_2_1()
119        {
120                $GLOBALS['setup_info']['phpgwapi']['currentver'] = '2.2.2';
121                return $GLOBALS['setup_info']['phpgwapi']['currentver'];
122        }
[5156]123        $test[] = '2.2.2';
[4363]124        function phpgwapi_upgrade2_2_2()
125        {
126                $GLOBALS['setup_info']['phpgwapi']['currentver'] = '2.2.3';
127                return $GLOBALS['setup_info']['phpgwapi']['currentver'];
128        }
[5156]129        $test[] = '2.2.3';
130        function phpgwapi_upgrade2_2_3()
131        {
132                $GLOBALS['setup_info']['phpgwapi']['currentver'] = '2.2.4';
133                return $GLOBALS['setup_info']['phpgwapi']['currentver'];
134        }
135        $test[] = '2.2.4';
136        function phpgwapi_upgrade2_2_4()
137        {
138                $GLOBALS['setup_info']['phpgwapi']['currentver'] = '2.2.6';
139                return $GLOBALS['setup_info']['phpgwapi']['currentver'];
140        }
141        $test[] = '2.2.6';
142        function phpgwapi_upgrade2_2_6()
143        {
144                $GLOBALS['setup_info']['phpgwapi']['currentver'] = '2.2.8';
145                return $GLOBALS['setup_info']['phpgwapi']['currentver'];
146        }
147        $test[] = '2.2.8';
148        function phpgwapi_upgrade2_2_8()
149        {
150                $GLOBALS['setup_info']['phpgwapi']['currentver'] = '2.3.0';
151                return $GLOBALS['setup_info']['phpgwapi']['currentver'];
152        }
[2]153?>
Note: See TracBrowser for help on using the repository browser.