source: trunk/emailadmin/setup/tables_update.inc.php @ 1323

Revision 1323, 3.6 KB checked in by niltonneto, 11 years ago (diff)

Ticket #563 - Alteradas versões dos módulos, conforme modelo de versionamento.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
Line 
1<?php
2        /**************************************************************************\
3        * EGroupWare - EMailadmin                                                  *
4        * http://www.egroupware.org                                                *
5        * http://www.phpgw.de                                                      *
6        * Author: lkneschke@phpgw.de                                               *
7        * --------------------------------------------                             *
8        *  This program is free software; you can redistribute it and/or modify it *
9        *  under the terms of the GNU General Public License as published by the   *
10        *  Free Software Foundation; either version 2 of the License, or (at your  *
11        *  option) any later version.                                              *
12        \**************************************************************************/
13
14        $test[] = '0.0.3';
15        function emailadmin_upgrade0_0_3()
16        {
17                $GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_emailadmin','smtpType', array('type' => 'int', 'precision' => 4));             
18
19                $setup_info['emailadmin']['currentver'] = '0.0.4';
20                return $setup_info['emailadmin']['currentver'];
21        }
22
23        $test[] = '0.0.4';
24        function emailadmin_upgrade0_0_4()
25        {
26                $GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_emailadmin','defaultDomain', array('type' => 'varchar', 'precision' => 100));         
27
28                $setup_info['emailadmin']['currentver'] = '0.0.5';
29                return $setup_info['emailadmin']['currentver'];
30        }
31
32        $test[] = '0.0.5';
33        function emailadmin_upgrade0_0_5()
34        {
35                $GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_emailadmin','organisationName', array('type' => 'varchar', 'precision' => 100));               
36                $GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_emailadmin','userDefinedAccounts', array('type' => 'varchar', 'precision' => 3));             
37
38                $setup_info['emailadmin']['currentver'] = '0.0.6';
39                return $setup_info['emailadmin']['currentver'];
40        }
41       
42
43
44        $test[] = '0.0.6';
45        function emailadmin_upgrade0_0_6()
46        {
47                $GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_emailadmin','oldimapcclient',array(
48                        'type' => 'varchar',
49                        'precision' => '3'
50                ));
51
52
53                $GLOBALS['setup_info']['emailadmin']['currentver'] = '0.0.007';
54                return $GLOBALS['setup_info']['emailadmin']['currentver'];
55        }
56
57
58        $test[] = '0.0.007';
59        function emailadmin_upgrade0_0_007()
60        {
61                $GLOBALS['phpgw_setup']->oProc->RenameColumn('phpgw_emailadmin','oldimapcclient','imapoldcclient');
62
63
64                $GLOBALS['setup_info']['emailadmin']['currentver'] = '0.0.008';
65                return $GLOBALS['setup_info']['emailadmin']['currentver'];
66        }
67       
68
69        $test[] = '0.0.008';
70        function emailadmin_upgrade0_0_008()
71        {
72                $GLOBALS['setup_info']['emailadmin']['currentver'] = '1.0.0';
73                return $GLOBALS['setup_info']['emailadmin']['currentver'];
74        }
75
76   $test[] = '1.0.0';
77   function emailadmin_upgrade1_0_0()
78        {
79        $GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_emailadmin','imapdefaulttrashfolder', array('type' => 'varchar', 'precision' => 20));
80           $GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_emailadmin','imapdefaultsentfolder', array('type' => 'varchar', 'precision' => 20));
81           $GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_emailadmin','imapdefaultdraftsfolder', array('type' => 'varchar', 'precision' => 20));
82           $GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_emailadmin','imapdefaultspamfolder', array('type' => 'varchar', 'precision' => 20));
83      $GLOBALS['setup_info']['emailadmin']['currentver'] = '1.0.1';
84      return $GLOBALS['setup_info']['emailadmin']['currentver'];
85   }
86   $test[] = '1.0.1';
87   function emailadmin_upgrade1_0_1()
88        {
89      $GLOBALS['setup_info']['emailadmin']['currentver'] = '2.0.000';
90      return $GLOBALS['setup_info']['emailadmin']['currentver'];
91   }
92?>
Note: See TracBrowser for help on using the repository browser.