[27] | 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 | \**************************************************************************/ |
---|
[131] | 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 | |
---|
[68] | 18 | $test[] = '1.21'; |
---|
| 19 | function expressoAdmin1_2_upgrade1_21() |
---|
[27] | 20 | { |
---|
| 21 | $oProc = $GLOBALS['phpgw_setup']->oProc; |
---|
| 22 | |
---|
| 23 | $oProc->CreateTable( |
---|
[68] | 24 | 'phpgw_expressoadmin_samba', array( |
---|
[27] | 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 | |
---|
[64] | 36 | $GLOBALS['setup_info']['expressoAdmin1_2']['currentver'] = '1.240'; |
---|
[131] | 37 | return $GLOBALS['setup_info']['expressoAdmin1_2']['currentver']; |
---|
[27] | 38 | } |
---|
[64] | 39 | |
---|
| 40 | $test[] = '1.240'; |
---|
| 41 | function expressoAdmin1_2_upgrade1_240() |
---|
[46] | 42 | { |
---|
[64] | 43 | $GLOBALS['setup_info']['expressoAdmin1_2']['currentver'] = '1.250'; |
---|
[131] | 44 | return $GLOBALS['setup_info']['expressoAdmin1_2']['currentver']; |
---|
[46] | 45 | } |
---|
[414] | 46 | |
---|
| 47 | $test[] = '1.261'; |
---|
| 48 | function expressoAdmin1_2_upgrade1_261() |
---|
| 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 | } |
---|
[64] | 54 | |
---|
[68] | 55 | ?> |
---|