[413] | 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 | \**************************************************************************/ |
---|
[433] | 11 | if ($GLOBALS['setup_info']['expressoMail1_2']['currentver'] == '1.230'){ // TESTE necessario porque a API nao |
---|
| 12 | $test[] = '1.230'; // reconhece mudancas de versões onde, |
---|
| 13 | function expressoMail1_2_upgrade1_230() { // ((nova_versao - versao_atual) < 3), |
---|
| 14 | global $setup_info, $phpgw_setup; // entao e necessario "burlar" a API. |
---|
| 15 | $phpgw_setup->oProc->CreateTable('phpgw_expressomail_contacts',array( |
---|
| 16 | 'fd' => array( |
---|
| 17 | 'id_owner' => array( 'type' => 'int', 'precision' => 8, 'nullable' => false), |
---|
| 18 | 'data' => array( 'type' => 'text') |
---|
| 19 | ), |
---|
| 20 | 'pk' => array('id_owner'), |
---|
| 21 | 'fk' => array(), |
---|
| 22 | 'ix' => array(), |
---|
| 23 | 'uc' => array() |
---|
| 24 | ) |
---|
| 25 | ); |
---|
| 26 | $setup_info['expressoMail1_2']['currentver'] = '1.231'; |
---|
| 27 | return $setup_info['expressoMail1_2']['currentver']; |
---|
| 28 | } |
---|
[413] | 29 | } |
---|
[433] | 30 | if ($GLOBALS['setup_info']['expressoMail1_2']['currentver'] == '1.222'){ |
---|
| 31 | $test[] = '1.222'; |
---|
| 32 | function expressoMail1_2_upgrade1_222() { |
---|
| 33 | global $setup_info, $phpgw_setup; |
---|
| 34 | $phpgw_setup->oProc->CreateTable('phpgw_expressomail_contacts',array( |
---|
| 35 | 'fd' => array( |
---|
| 36 | 'id_owner' => array( 'type' => 'int', 'precision' => 8, 'nullable' => false), |
---|
| 37 | 'data' => array( 'type' => 'text') |
---|
| 38 | ), |
---|
| 39 | 'pk' => array('id_owner'), |
---|
| 40 | 'fk' => array(), |
---|
| 41 | 'ix' => array(), |
---|
| 42 | 'uc' => array() |
---|
| 43 | ) |
---|
| 44 | ); |
---|
| 45 | $setup_info['expressoMail1_2']['currentver'] = '1.231'; |
---|
| 46 | return $setup_info['expressoMail1_2']['currentver']; |
---|
| 47 | } |
---|
[413] | 48 | } |
---|
[433] | 49 | if ($GLOBALS['setup_info']['expressoMail1_2']['currentver'] == '1.2211'){ |
---|
| 50 | $test[] = '1.2211'; |
---|
| 51 | function expressoMail1_2_upgrade1_2211() { |
---|
| 52 | global $setup_info, $phpgw_setup; |
---|
| 53 | $phpgw_setup->oProc->CreateTable('phpgw_expressomail_contacts',array( |
---|
| 54 | 'fd' => array( |
---|
| 55 | 'id_owner' => array( 'type' => 'int', 'precision' => 8, 'nullable' => false), |
---|
| 56 | 'data' => array( 'type' => 'text') |
---|
| 57 | ), |
---|
| 58 | 'pk' => array('id_owner'), |
---|
| 59 | 'fk' => array(), |
---|
| 60 | 'ix' => array(), |
---|
| 61 | 'uc' => array() |
---|
| 62 | ) |
---|
| 63 | ); |
---|
| 64 | $setup_info['expressoMail1_2']['currentver'] = '1.231'; |
---|
| 65 | return $setup_info['expressoMail1_2']['currentver']; |
---|
| 66 | } |
---|
| 67 | } |
---|
[413] | 68 | |
---|
[433] | 69 | if ($GLOBALS['setup_info']['expressoMail1_2']['currentver'] == '1.2031'){ |
---|
| 70 | $test[] = '1.2031'; |
---|
| 71 | function expressoMail1_2_upgrade1_2031() { |
---|
| 72 | $oProc = $GLOBALS['phpgw_setup']->oProc; |
---|
| 73 | $oProc->CreateTable('phpgw_expressomail_contacts',array( |
---|
| 74 | 'fd' => array( |
---|
| 75 | 'id_owner' => array( 'type' => 'int', 'precision' => 8, 'nullable' => false), |
---|
| 76 | 'data' => array( 'type' => 'text') |
---|
| 77 | ), |
---|
| 78 | 'pk' => array('id_owner'), |
---|
| 79 | 'fk' => array(), |
---|
| 80 | 'ix' => array(), |
---|
| 81 | 'uc' => array() |
---|
| 82 | ) |
---|
| 83 | ); |
---|
| 84 | $GLOBALS['setup_info']['expressoMail1_2']['currentver'] = '1.231'; |
---|
| 85 | return $GLOBALS['setup_info']['expressoMail1_2']['currentver']; |
---|
| 86 | } |
---|
| 87 | } |
---|
[413] | 88 | ?> |
---|