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

Revision 413, 2.8 KB checked in by rafaelraymundo, 16 years ago (diff)

Melhoria implementada, relativo a ocorrencia #314 da comunidade.
Contatos dinamicos no envio de emails de forma configuravel.

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