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

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

resolve #384

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.231'){
12                $test[] = '1.231';                                                                                                     
13                function expressoMail1_2_upgrade1_231() {
14                        $setup_info['expressoMail1_2']['currentver'] = '1.232';
15                        return $setup_info['expressoMail1_2']['currentver'];
16                }
17        }
18       
19        function expressoMail1_2_upgrade1_230() {
20                $oProc = $GLOBALS['phpgw_setup']->oProc;
21                $oProc->CreateTable('phpgw_expressomail_contacts',array(
22                        'fd' => array(
23                                'id_owner' => array( 'type' => 'int', 'precision' => 8, 'nullable' => false),
24                                'data' => array( 'type' => 'text')
25                        ),
26                        'pk' => array('id_owner'),
27                        'fk' => array(),
28                        'ix' => array(),
29                        'uc' => array() )
30                );
31                $setup_info['expressoMail1_2']['currentver'] = '1.231';
32                return $setup_info['expressoMail1_2']['currentver'];
33        }               
34                               
35        if ($GLOBALS['setup_info']['expressoMail1_2']['currentver'] == '1.230'){
36                $test[] = '1.230';                                                                                                     
37                return expressoMail1_2_upgrade1_230();
38        }
39        if ($GLOBALS['setup_info']['expressoMail1_2']['currentver'] == '1.222'){
40                $test[] = '1.222';
41                function expressoMail1_2_upgrade1_222() {return expressoMail1_2_upgrade1_230(); }
42        }
43        if ($GLOBALS['setup_info']['expressoMail1_2']['currentver'] == '1.2211'){
44                $test[] = '1.2211';
45                function expressoMail1_2_upgrade1_2211() {return expressoMail1_2_upgrade1_230();}
46        }
47        if ($GLOBALS['setup_info']['expressoMail1_2']['currentver'] == '1.2201'){
48                $test[] = '1.2201';
49                function expressoMail1_2_upgrade1_2201() {return expressoMail1_2_upgrade1_230();}
50        }
51       
52        if ($GLOBALS['setup_info']['expressoMail1_2']['currentver'] == '1.2031'){
53                $test[] = '1.2031';
54                function expressoMail1_2_upgrade1_2031() {return expressoMail1_2_upgrade1_230();}
55        }       
56?>
Note: See TracBrowser for help on using the repository browser.