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

Revision 1247, 3.4 KB checked in by amuller, 15 years ago (diff)

Ticket #000 - Defazendo commit errado para refazer o certo em seguida

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        $test[] = '1.2031';
12        function expressoMail1_2_upgrade1_2031() {
13                $GLOBALS['setup_info']['expressoMail1_2']['currentver'] = '1.2201';
14                return $GLOBALS['setup_info']['expressoMail1_2']['currentver'];
15        }
16       
17        $test[] = '1.2201';
18        function expressoMail1_2_upgrade1_2201() {
19                $GLOBALS['setup_info']['expressoMail1_2']['currentver'] = '1.2211';
20                return $GLOBALS['setup_info']['expressoMail1_2']['currentver'];         
21        }
22       
23        $test[] = '1.2211';
24        function expressoMail1_2_upgrade1_2211() {
25                $GLOBALS['setup_info']['expressoMail1_2']['currentver'] = '1.222';
26                return $GLOBALS['setup_info']['expressoMail1_2']['currentver'];
27        }
28
29        $test[] = '1.222';
30        function expressoMail1_2_upgrade1_222() {
31                $GLOBALS['setup_info']['expressoMail1_2']['currentver'] = '1.230';
32                return $GLOBALS['setup_info']['expressoMail1_2']['currentver'];
33        }
34       
35        $test[] = '1.230';
36        function expressoMail1_2_upgrade1_230() {
37                $oProc = $GLOBALS['phpgw_setup']->oProc;
38                $oProc->CreateTable('phpgw_expressomail_contacts',array(
39                        'fd' => array(
40                                'id_owner' => array( 'type' => 'int', 'precision' => 8, 'nullable' => false),
41                                'data' => array( 'type' => 'text')
42                        ),
43                        'pk' => array('id_owner'),
44                        'fk' => array(),
45                        'ix' => array(),
46                        'uc' => array() )
47                );
48                $setup_info['expressoMail1_2']['currentver'] = '1.231';
49                return $setup_info['expressoMail1_2']['currentver'];
50        }               
51        $test[] = '1.231';                                                                                                     
52        function expressoMail1_2_upgrade1_231() {
53                $setup_info['expressoMail1_2']['currentver'] = '1.232';
54                return $setup_info['expressoMail1_2']['currentver'];
55        }
56       
57        $test[] = '1.232';
58        function expressoMail1_2_upgrade1_232() {
59                $setup_info['expressoMail1_2']['currentver'] = '1.233';
60                return $setup_info['expressoMail1_2']['currentver'];
61        }
62       
63        $test[] = '1.233';
64        function expressoMail1_2_upgrade1_233() {
65                $setup_info['expressoMail1_2']['currentver'] = '1.234';
66                return $setup_info['expressoMail1_2']['currentver'];
67        }
68       
69        $test[] = '1.234';
70        function expressoMail1_2_upgrade1_234() {
71        $oProc = $GLOBALS['phpgw_setup']->oProc;           
72            $oProc->CreateTable('phpgw_certificados',array(
73                        'fd' => array(
74                                'email' => array( 'type' => 'varchar', 'precision' => 60, 'nullable' => false),
75                                'chave_publica' => array( 'type' => 'text'),
76                                'expirado' => array('type' => 'bool', 'default' => 'false'),
77                                'revogado' => array('type' => 'bool', 'default' => 'false'),
78                                'serialnumber' => array('type' => 'int', 'precision' => 8, 'nullable' => false),
79                                'authoritykeyidentifier' => array( 'type' => 'text', 'nullable' => false),
80                        ),
81                        'pk' => array('email','serialnumber','authoritykeyidentifier'),
82                        'fk' => array(),
83                        'ix' => array(),
84                        'uc' => array()
85                        )
86                );
87                $GLOBALS['setup_info']['expressoMail1_2']['currentver'] = '1.235';
88        return $GLOBALS['setup_info']['expressoMail1_2']['currentver'];
89        }       
90?>
Note: See TracBrowser for help on using the repository browser.