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