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 | \**************************************************************************/ |
---|
11 | $test[] = '1.2'; |
---|
12 | function expressoAdmin1_2_upgrade1_2() |
---|
13 | { |
---|
14 | $GLOBALS['setup_info']['expressoAdmin1_2']['currentver'] = '1.21'; |
---|
15 | return $GLOBALS['setup_info']['expressoAdmin1_2']['currentver']; |
---|
16 | } |
---|
17 | |
---|
18 | $test[] = '1.21'; |
---|
19 | function expressoAdmin1_2_upgrade1_21() |
---|
20 | { |
---|
21 | $oProc = $GLOBALS['phpgw_setup']->oProc; |
---|
22 | |
---|
23 | $oProc->CreateTable( |
---|
24 | 'phpgw_expressoadmin_samba', array( |
---|
25 | 'fd' => array( |
---|
26 | 'samba_domain_name' => array( 'type' => 'varchar', 'precision' => 50), |
---|
27 | 'samba_domain_sid' => array( 'type' => 'varchar', 'precision' => 100) |
---|
28 | ), |
---|
29 | 'pk' => array('samba_domain_name'), |
---|
30 | 'fk' => array(), |
---|
31 | 'ix' => array(), |
---|
32 | 'uc' => array() |
---|
33 | ) |
---|
34 | ); |
---|
35 | |
---|
36 | $GLOBALS['setup_info']['expressoAdmin1_2']['currentver'] = '1.240'; |
---|
37 | return $GLOBALS['setup_info']['expressoAdmin1_2']['currentver']; |
---|
38 | } |
---|
39 | |
---|
40 | $test[] = '1.240'; |
---|
41 | function expressoAdmin1_2_upgrade1_240() |
---|
42 | { |
---|
43 | $GLOBALS['setup_info']['expressoAdmin1_2']['currentver'] = '1.250'; |
---|
44 | return $GLOBALS['setup_info']['expressoAdmin1_2']['currentver']; |
---|
45 | } |
---|
46 | |
---|
47 | $test[] = '1.250'; |
---|
48 | function expressoAdmin1_2_upgrade1_250() |
---|
49 | { |
---|
50 | $GLOBALS['phpgw_setup']->oProc->DropColumn('phpgw_expressoadmin_log','','appinfo'); |
---|
51 | $GLOBALS['phpgw_setup']->oProc->DropColumn('phpgw_expressoadmin_log','','groupinfo'); |
---|
52 | $GLOBALS['phpgw_setup']->oProc->DropColumn('phpgw_expressoadmin_log','','msg'); |
---|
53 | $GLOBALS['setup_info']['expressoAdmin1_2']['currentver'] = '1.261'; |
---|
54 | return $GLOBALS['setup_info']['expressoAdmin1_2']['currentver']; |
---|
55 | } |
---|
56 | |
---|
57 | $test[] = '1.261'; |
---|
58 | function expressoAdmin1_2_upgrade1_261() |
---|
59 | { |
---|
60 | $GLOBALS['setup_info']['expressoAdmin1_2']['currentver'] = '2.0.000'; |
---|
61 | return $GLOBALS['setup_info']['expressoAdmin1_2']['currentver']; |
---|
62 | } |
---|
63 | |
---|
64 | ?> |
---|