source: trunk/expressoAdmin1_2/setup/tables_update.inc.php @ 1323

Revision 1323, 2.3 KB checked in by niltonneto, 15 years ago (diff)

Ticket #563 - Alteradas versões dos módulos, conforme modelo de versionamento.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
RevLine 
[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       
[1323]47        $test[] = '1.250';
48        function expressoAdmin1_2_upgrade1_250()
[414]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');
[1323]53                $GLOBALS['setup_info']['expressoAdmin1_2']['currentver'] = '1.261';
54                return $GLOBALS['setup_info']['expressoAdmin1_2']['currentver'];
[414]55        }
[1323]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        }
[64]63
[68]64?>
Note: See TracBrowser for help on using the repository browser.