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 | } |
---|
75 | ?> |
---|