[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 | \**************************************************************************/ |
---|
[1247] | 11 | $test[] = '1.2031'; |
---|
| 12 | function expressoMail1_2_upgrade1_2031() { |
---|
| 13 | $GLOBALS['setup_info']['expressoMail1_2']['currentver'] = '1.2201'; |
---|
| 14 | return $GLOBALS['setup_info']['expressoMail1_2']['currentver']; |
---|
[1038] | 15 | } |
---|
[1247] | 16 | |
---|
| 17 | $test[] = '1.2201'; |
---|
| 18 | function expressoMail1_2_upgrade1_2201() { |
---|
| 19 | $GLOBALS['setup_info']['expressoMail1_2']['currentver'] = '1.2211'; |
---|
| 20 | return $GLOBALS['setup_info']['expressoMail1_2']['currentver']; |
---|
[538] | 21 | } |
---|
| 22 | |
---|
[1247] | 23 | $test[] = '1.2211'; |
---|
| 24 | function expressoMail1_2_upgrade1_2211() { |
---|
| 25 | $GLOBALS['setup_info']['expressoMail1_2']['currentver'] = '1.222'; |
---|
| 26 | return $GLOBALS['setup_info']['expressoMail1_2']['currentver']; |
---|
| 27 | } |
---|
| 28 | |
---|
| 29 | $test[] = '1.222'; |
---|
| 30 | function expressoMail1_2_upgrade1_222() { |
---|
| 31 | $GLOBALS['setup_info']['expressoMail1_2']['currentver'] = '1.230'; |
---|
| 32 | return $GLOBALS['setup_info']['expressoMail1_2']['currentver']; |
---|
| 33 | } |
---|
| 34 | |
---|
| 35 | $test[] = '1.230'; |
---|
[568] | 36 | function expressoMail1_2_upgrade1_230() { |
---|
| 37 | $oProc = $GLOBALS['phpgw_setup']->oProc; |
---|
| 38 | $oProc->CreateTable('phpgw_expressomail_contacts',array( |
---|
| 39 | 'fd' => array( |
---|
| 40 | 'id_owner' => array( 'type' => 'int', 'precision' => 8, 'nullable' => false), |
---|
| 41 | 'data' => array( 'type' => 'text') |
---|
| 42 | ), |
---|
| 43 | 'pk' => array('id_owner'), |
---|
| 44 | 'fk' => array(), |
---|
| 45 | 'ix' => array(), |
---|
| 46 | 'uc' => array() ) |
---|
[433] | 47 | ); |
---|
| 48 | $setup_info['expressoMail1_2']['currentver'] = '1.231'; |
---|
[568] | 49 | return $setup_info['expressoMail1_2']['currentver']; |
---|
| 50 | } |
---|
[1247] | 51 | $test[] = '1.231'; |
---|
| 52 | function expressoMail1_2_upgrade1_231() { |
---|
| 53 | $setup_info['expressoMail1_2']['currentver'] = '1.232'; |
---|
| 54 | return $setup_info['expressoMail1_2']['currentver']; |
---|
[413] | 55 | } |
---|
[1247] | 56 | |
---|
| 57 | $test[] = '1.232'; |
---|
| 58 | function expressoMail1_2_upgrade1_232() { |
---|
| 59 | $setup_info['expressoMail1_2']['currentver'] = '1.233'; |
---|
| 60 | return $setup_info['expressoMail1_2']['currentver']; |
---|
[413] | 61 | } |
---|
[1247] | 62 | |
---|
| 63 | $test[] = '1.233'; |
---|
| 64 | function expressoMail1_2_upgrade1_233() { |
---|
| 65 | $setup_info['expressoMail1_2']['currentver'] = '1.234'; |
---|
| 66 | return $setup_info['expressoMail1_2']['currentver']; |
---|
[433] | 67 | } |
---|
[413] | 68 | |
---|
[1247] | 69 | $test[] = '1.234'; |
---|
| 70 | function expressoMail1_2_upgrade1_234() { |
---|
| 71 | $oProc = $GLOBALS['phpgw_setup']->oProc; |
---|
| 72 | $oProc->CreateTable('phpgw_certificados',array( |
---|
| 73 | 'fd' => array( |
---|
| 74 | 'email' => array( 'type' => 'varchar', 'precision' => 60, 'nullable' => false), |
---|
| 75 | 'chave_publica' => array( 'type' => 'text'), |
---|
| 76 | 'expirado' => array('type' => 'bool', 'default' => 'false'), |
---|
| 77 | 'revogado' => array('type' => 'bool', 'default' => 'false'), |
---|
| 78 | 'serialnumber' => array('type' => 'int', 'precision' => 8, 'nullable' => false), |
---|
| 79 | 'authoritykeyidentifier' => array( 'type' => 'text', 'nullable' => false), |
---|
| 80 | ), |
---|
| 81 | 'pk' => array('email','serialnumber','authoritykeyidentifier'), |
---|
| 82 | 'fk' => array(), |
---|
| 83 | 'ix' => array(), |
---|
| 84 | 'uc' => array() |
---|
| 85 | ) |
---|
| 86 | ); |
---|
| 87 | $GLOBALS['setup_info']['expressoMail1_2']['currentver'] = '1.235'; |
---|
| 88 | return $GLOBALS['setup_info']['expressoMail1_2']['currentver']; |
---|
[1323] | 89 | } |
---|
| 90 | $test[] = '1.235'; |
---|
| 91 | function expressoMail1_2_upgrade1_235() { |
---|
| 92 | $setup_info['expressoMail1_2']['currentver'] = '2.0.000'; |
---|
| 93 | return $setup_info['expressoMail1_2']['currentver']; |
---|
| 94 | } |
---|
[1247] | 95 | ?> |
---|