[2] | 1 | <?php |
---|
| 2 | /**************************************************************************\ |
---|
| 3 | * EGroupWare - EMailadmin * |
---|
| 4 | * http://www.egroupware.org * |
---|
| 5 | * http://www.phpgw.de * |
---|
| 6 | * Author: lkneschke@phpgw.de * |
---|
| 7 | * -------------------------------------------- * |
---|
| 8 | * This program is free software; you can redistribute it and/or modify it * |
---|
| 9 | * under the terms of the GNU General Public License as published by the * |
---|
| 10 | * Free Software Foundation; either version 2 of the License, or (at your * |
---|
| 11 | * option) any later version. * |
---|
| 12 | \**************************************************************************/ |
---|
| 13 | |
---|
| 14 | $test[] = '0.0.3'; |
---|
| 15 | function emailadmin_upgrade0_0_3() |
---|
| 16 | { |
---|
| 17 | $GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_emailadmin','smtpType', array('type' => 'int', 'precision' => 4)); |
---|
| 18 | |
---|
| 19 | $setup_info['emailadmin']['currentver'] = '0.0.4'; |
---|
| 20 | return $setup_info['emailadmin']['currentver']; |
---|
| 21 | } |
---|
| 22 | |
---|
| 23 | $test[] = '0.0.4'; |
---|
| 24 | function emailadmin_upgrade0_0_4() |
---|
| 25 | { |
---|
| 26 | $GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_emailadmin','defaultDomain', array('type' => 'varchar', 'precision' => 100)); |
---|
| 27 | |
---|
| 28 | $setup_info['emailadmin']['currentver'] = '0.0.5'; |
---|
| 29 | return $setup_info['emailadmin']['currentver']; |
---|
| 30 | } |
---|
| 31 | |
---|
| 32 | $test[] = '0.0.5'; |
---|
| 33 | function emailadmin_upgrade0_0_5() |
---|
| 34 | { |
---|
| 35 | $GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_emailadmin','organisationName', array('type' => 'varchar', 'precision' => 100)); |
---|
| 36 | $GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_emailadmin','userDefinedAccounts', array('type' => 'varchar', 'precision' => 3)); |
---|
| 37 | |
---|
| 38 | $setup_info['emailadmin']['currentver'] = '0.0.6'; |
---|
| 39 | return $setup_info['emailadmin']['currentver']; |
---|
| 40 | } |
---|
| 41 | |
---|
| 42 | |
---|
| 43 | |
---|
| 44 | $test[] = '0.0.6'; |
---|
| 45 | function emailadmin_upgrade0_0_6() |
---|
| 46 | { |
---|
| 47 | $GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_emailadmin','oldimapcclient',array( |
---|
| 48 | 'type' => 'varchar', |
---|
| 49 | 'precision' => '3' |
---|
| 50 | )); |
---|
| 51 | |
---|
| 52 | |
---|
| 53 | $GLOBALS['setup_info']['emailadmin']['currentver'] = '0.0.007'; |
---|
| 54 | return $GLOBALS['setup_info']['emailadmin']['currentver']; |
---|
| 55 | } |
---|
| 56 | |
---|
| 57 | |
---|
| 58 | $test[] = '0.0.007'; |
---|
| 59 | function emailadmin_upgrade0_0_007() |
---|
| 60 | { |
---|
| 61 | $GLOBALS['phpgw_setup']->oProc->RenameColumn('phpgw_emailadmin','oldimapcclient','imapoldcclient'); |
---|
| 62 | |
---|
| 63 | |
---|
| 64 | $GLOBALS['setup_info']['emailadmin']['currentver'] = '0.0.008'; |
---|
| 65 | return $GLOBALS['setup_info']['emailadmin']['currentver']; |
---|
| 66 | } |
---|
| 67 | |
---|
| 68 | |
---|
| 69 | $test[] = '0.0.008'; |
---|
| 70 | function emailadmin_upgrade0_0_008() |
---|
| 71 | { |
---|
| 72 | $GLOBALS['setup_info']['emailadmin']['currentver'] = '1.0.0'; |
---|
| 73 | return $GLOBALS['setup_info']['emailadmin']['currentver']; |
---|
| 74 | } |
---|
[187] | 75 | |
---|
| 76 | $test[] = '1.0.0'; |
---|
| 77 | function emailadmin_upgrade1_0_0() |
---|
| 78 | { |
---|
| 79 | $GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_emailadmin','imapdefaulttrashfolder', array('type' => 'varchar', 'precision' => 20)); |
---|
| 80 | $GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_emailadmin','imapdefaultsentfolder', array('type' => 'varchar', 'precision' => 20)); |
---|
| 81 | $GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_emailadmin','imapdefaultdraftsfolder', array('type' => 'varchar', 'precision' => 20)); |
---|
| 82 | $GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_emailadmin','imapdefaultspamfolder', array('type' => 'varchar', 'precision' => 20)); |
---|
| 83 | $GLOBALS['setup_info']['emailadmin']['currentver'] = '1.0.1'; |
---|
| 84 | return $GLOBALS['setup_info']['emailadmin']['currentver']; |
---|
| 85 | } |
---|
[1323] | 86 | $test[] = '1.0.1'; |
---|
| 87 | function emailadmin_upgrade1_0_1() |
---|
[1728] | 88 | { |
---|
[1323] | 89 | $GLOBALS['setup_info']['emailadmin']['currentver'] = '2.0.000'; |
---|
| 90 | return $GLOBALS['setup_info']['emailadmin']['currentver']; |
---|
| 91 | } |
---|
[1523] | 92 | $test[] = '2.0.000'; |
---|
| 93 | function emailadmin_upgrade2_0_000() |
---|
[3031] | 94 | { |
---|
[1523] | 95 | $GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_emailadmin','imapcreatespamfolder', array('type' => 'varchar', 'precision' => 3)); |
---|
| 96 | $GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_emailadmin','imapcyrususerpostspam', array('type' => 'varchar', 'precision' => 30)); |
---|
[3173] | 97 | $GLOBALS['setup_info']['emailadmin']['currentver'] = '2.0.001'; |
---|
| 98 | return $GLOBALS['setup_info']['emailadmin']['currentver']; |
---|
| 99 | } |
---|
| 100 | $test[] = '2.0.001'; |
---|
| 101 | function emailadmin_upgrade2_0_001() |
---|
| 102 | { |
---|
[3031] | 103 | $GLOBALS['setup_info']['emailadmin']['currentver'] = '2.1.000'; |
---|
[1523] | 104 | return $GLOBALS['setup_info']['emailadmin']['currentver']; |
---|
| 105 | } |
---|
[3031] | 106 | $test[] = '2.1.000'; |
---|
| 107 | function emailadmin_upgrade2_1_000() |
---|
[1728] | 108 | { |
---|
[3031] | 109 | $GLOBALS['setup_info']['emailadmin']['currentver'] = '2.2.000'; |
---|
[1728] | 110 | return $GLOBALS['setup_info']['emailadmin']['currentver']; |
---|
| 111 | } |
---|
[4186] | 112 | $test[] = '2.2.000'; |
---|
| 113 | function emailadmin_upgrade2_2_000() |
---|
| 114 | { |
---|
| 115 | $GLOBALS['setup_info']['emailadmin']['currentver'] = '2.2.1'; |
---|
| 116 | return $GLOBALS['setup_info']['emailadmin']['currentver']; |
---|
| 117 | } |
---|
[5125] | 118 | $test[] = '2.2.1'; |
---|
| 119 | function emailadmin_upgrade2_2_1() |
---|
| 120 | { |
---|
[5352] | 121 | $GLOBALS['setup_info']['emailadmin']['currentver'] = '2.3.0'; |
---|
| 122 | return $GLOBALS['setup_info']['emailadmin']['currentver']; |
---|
| 123 | } |
---|
| 124 | $test[] = '2.3.0'; |
---|
| 125 | function emailadmin_upgrade2_3_0() |
---|
| 126 | { |
---|
[5125] | 127 | $GLOBALS['setup_info']['emailadmin']['currentver'] = '2.4.0'; |
---|
| 128 | return $GLOBALS['setup_info']['emailadmin']['currentver']; |
---|
| 129 | } |
---|
[1728] | 130 | ?> |
---|