1 | <?php |
---|
2 | /**************************************************************************\ |
---|
3 | * ExpressoLivre - Setup * |
---|
4 | * http://www.expressolivre.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 | if ($GLOBALS['setup_info']['expressoMail1_2']['currentver'] == '1.232'){ |
---|
12 | $test[] = '1.232'; |
---|
13 | function expressoMail1_2_upgrade1_232() { |
---|
14 | $setup_info['expressoMail1_2']['currentver'] = '1.233'; |
---|
15 | return $setup_info['expressoMail1_2']['currentver']; |
---|
16 | } |
---|
17 | } |
---|
18 | if ($GLOBALS['setup_info']['expressoMail1_2']['currentver'] == '1.231'){ |
---|
19 | $test[] = '1.231'; |
---|
20 | function expressoMail1_2_upgrade1_231() { |
---|
21 | $setup_info['expressoMail1_2']['currentver'] = '1.232'; |
---|
22 | return $setup_info['expressoMail1_2']['currentver']; |
---|
23 | } |
---|
24 | } |
---|
25 | |
---|
26 | function expressoMail1_2_upgrade1_230() { |
---|
27 | $oProc = $GLOBALS['phpgw_setup']->oProc; |
---|
28 | $oProc->CreateTable('phpgw_expressomail_contacts',array( |
---|
29 | 'fd' => array( |
---|
30 | 'id_owner' => array( 'type' => 'int', 'precision' => 8, 'nullable' => false), |
---|
31 | 'data' => array( 'type' => 'text') |
---|
32 | ), |
---|
33 | 'pk' => array('id_owner'), |
---|
34 | 'fk' => array(), |
---|
35 | 'ix' => array(), |
---|
36 | 'uc' => array() ) |
---|
37 | ); |
---|
38 | $setup_info['expressoMail1_2']['currentver'] = '1.231'; |
---|
39 | return $setup_info['expressoMail1_2']['currentver']; |
---|
40 | } |
---|
41 | |
---|
42 | if ($GLOBALS['setup_info']['expressoMail1_2']['currentver'] == '1.230'){ |
---|
43 | $test[] = '1.230'; |
---|
44 | return expressoMail1_2_upgrade1_230(); |
---|
45 | } |
---|
46 | if ($GLOBALS['setup_info']['expressoMail1_2']['currentver'] == '1.222'){ |
---|
47 | $test[] = '1.222'; |
---|
48 | function expressoMail1_2_upgrade1_222() {return expressoMail1_2_upgrade1_230(); } |
---|
49 | } |
---|
50 | if ($GLOBALS['setup_info']['expressoMail1_2']['currentver'] == '1.2211'){ |
---|
51 | $test[] = '1.2211'; |
---|
52 | function expressoMail1_2_upgrade1_2211() {return expressoMail1_2_upgrade1_230();} |
---|
53 | } |
---|
54 | if ($GLOBALS['setup_info']['expressoMail1_2']['currentver'] == '1.2201'){ |
---|
55 | $test[] = '1.2201'; |
---|
56 | function expressoMail1_2_upgrade1_2201() {return expressoMail1_2_upgrade1_230();} |
---|
57 | } |
---|
58 | |
---|
59 | if ($GLOBALS['setup_info']['expressoMail1_2']['currentver'] == '1.2031'){ |
---|
60 | $test[] = '1.2031'; |
---|
61 | function expressoMail1_2_upgrade1_2031() {return expressoMail1_2_upgrade1_230();} |
---|
62 | } |
---|
63 | ?> |
---|