source: trunk/expressoMail1_2/setup/tables_update.inc.php @ 1034

Revision 1034, 2.9 KB checked in by amuller, 15 years ago (diff)

Ticket #485 - Atualizando preferencias do expressoMail no BD

Line 
1<?php
2        /**************************************************************************\
3        * ExpressoLivre - Setup                                                     *
4        * http://www.expressolivre.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        if ($GLOBALS['setup_info']['expressoMail1_2']['currentver'] == '1.233'){
12                $test[] = '1.233';
13                function expressoMail1_2_upgrade1_233() {
14                        $setup_info['expressoMail1_2']['currentver'] = '1.234';
15                        return $setup_info['expressoMail1_2']['currentver'];
16                }
17        }       
18        if ($GLOBALS['setup_info']['expressoMail1_2']['currentver'] == '1.232'){
19                $test[] = '1.232';                                                                                                     
20                function expressoMail1_2_upgrade1_232() {
21                        $setup_info['expressoMail1_2']['currentver'] = '1.233';
22                        return $setup_info['expressoMail1_2']['currentver'];
23                }
24        }       
25        if ($GLOBALS['setup_info']['expressoMail1_2']['currentver'] == '1.231'){
26                $test[] = '1.231';                                                                                                     
27                function expressoMail1_2_upgrade1_231() {
28                        $setup_info['expressoMail1_2']['currentver'] = '1.232';
29                        return $setup_info['expressoMail1_2']['currentver'];
30                }
31        }
32       
33        function expressoMail1_2_upgrade1_230() {
34                $oProc = $GLOBALS['phpgw_setup']->oProc;
35                $oProc->CreateTable('phpgw_expressomail_contacts',array(
36                        'fd' => array(
37                                'id_owner' => array( 'type' => 'int', 'precision' => 8, 'nullable' => false),
38                                'data' => array( 'type' => 'text')
39                        ),
40                        'pk' => array('id_owner'),
41                        'fk' => array(),
42                        'ix' => array(),
43                        'uc' => array() )
44                );
45                $setup_info['expressoMail1_2']['currentver'] = '1.231';
46                return $setup_info['expressoMail1_2']['currentver'];
47        }               
48                               
49        if ($GLOBALS['setup_info']['expressoMail1_2']['currentver'] == '1.230'){
50                $test[] = '1.230';                                                                                                     
51                return expressoMail1_2_upgrade1_230();
52        }
53        if ($GLOBALS['setup_info']['expressoMail1_2']['currentver'] == '1.222'){
54                $test[] = '1.222';
55                function expressoMail1_2_upgrade1_222() {return expressoMail1_2_upgrade1_230(); }
56        }
57        if ($GLOBALS['setup_info']['expressoMail1_2']['currentver'] == '1.2211'){
58                $test[] = '1.2211';
59                function expressoMail1_2_upgrade1_2211() {return expressoMail1_2_upgrade1_230();}
60        }
61        if ($GLOBALS['setup_info']['expressoMail1_2']['currentver'] == '1.2201'){
62                $test[] = '1.2201';
63                function expressoMail1_2_upgrade1_2201() {return expressoMail1_2_upgrade1_230();}
64        }
65       
66        if ($GLOBALS['setup_info']['expressoMail1_2']['currentver'] == '1.2031'){
67                $test[] = '1.2031';
68                function expressoMail1_2_upgrade1_2031() {return expressoMail1_2_upgrade1_230();}
69        }       
70?>
Note: See TracBrowser for help on using the repository browser.