[763] | 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.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 | } |
---|
| 54 | |
---|
| 55 | ?> |
---|