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

Revision 655, 2.6 KB checked in by niltonneto, 16 years ago (diff)

Correção de lang do idioma português. Problema no espaçamento "\t".
Incluído função para atualização de versão.

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