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

Revision 4180, 2.9 KB checked in by niltonneto, 10 years ago (diff)

Ticket #1804 - Corrigido numeração das versões de acordo com o novo modelo.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
Line 
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        // Since Expresso 1.2 using ExpressoAdmin 1.261
12        $test[] = '1.261';
13        function expressoAdmin1_2_upgrade1_261()
14        {
15                $GLOBALS['setup_info']['expressoAdmin1_2']['currentver'] = '2.0.000';
16                return $GLOBALS['setup_info']['expressoAdmin1_2']['currentver'];
17        }
18        $test[] = '2.0.000';
19        function expressoAdmin1_2_upgrade2_0_000()
20        {
21                $GLOBALS['setup_info']['expressoAdmin1_2']['currentver'] = '2.0.001';
22                return $GLOBALS['setup_info']['expressoAdmin1_2']['currentver'];
23        }
24        $test[] = '2.0.001';
25        function expressoAdmin1_2_upgrade2_0_001()
26        {
27                $GLOBALS['setup_info']['expressoAdmin1_2']['currentver'] = '2.0.002';
28                return $GLOBALS['setup_info']['expressoAdmin1_2']['currentver'];
29        }       
30        $test[] = '2.0.002';
31        function expressoAdmin1_2_upgrade2_0_002()
32        {
33                $GLOBALS['setup_info']['expressoAdmin1_2']['currentver'] = '2.0.003';
34                return $GLOBALS['setup_info']['expressoAdmin1_2']['currentver'];
35        }       
36        $test[] = '2.0.003';
37        function expressoAdmin1_2_upgrade2_0_003()
38        {
39                $GLOBALS['setup_info']['expressoAdmin1_2']['currentver'] = '2.0.004';
40                return $GLOBALS['setup_info']['expressoAdmin1_2']['currentver'];
41        }               
42        $test[] = '2.0.004';
43        function expressoAdmin1_2_upgrade2_0_004()
44        {
45                $GLOBALS['setup_info']['expressoAdmin1_2']['currentver'] = '2.0.005';
46                return $GLOBALS['setup_info']['expressoAdmin1_2']['currentver'];
47        }
48        $test[] = '2.0.005';
49        function expressoAdmin1_2_upgrade2_0_005()
50        {
51                $GLOBALS['phpgw_setup']->db->query("alter table phpgw_expressoadmin_log drop groupinfo");
52                $GLOBALS['phpgw_setup']->db->query("alter table phpgw_expressoadmin_log drop appinfo");
53                $GLOBALS['phpgw_setup']->db->query("alter table phpgw_expressoadmin_log drop msg");             
54                $GLOBALS['setup_info']['expressoAdmin1_2']['currentver'] = '2.1.000';
55                return $GLOBALS['setup_info']['expressoAdmin1_2']['currentver'];
56        }
57        $test[] = '2.1.000';
58        function expressoAdmin1_2_upgrade2_1_000()
59        {
60                $GLOBALS['setup_info']['expressoAdmin1_2']['currentver'] = '2.2.000';
61                return $GLOBALS['setup_info']['expressoAdmin1_2']['currentver'];
62        }
63        $test[] = '2.2.000';
64        function expressoAdmin1_2_upgrade2_2_000()
65        {
66                $GLOBALS['setup_info']['expressoAdmin1_2']['currentver'] = '2.2.1';
67                return $GLOBALS['setup_info']['expressoAdmin1_2']['currentver'];
68        }
69?>
Note: See TracBrowser for help on using the repository browser.