Ignore:
Timestamp:
06/20/09 01:07:18 (15 years ago)
Author:
rafaelraymundo
Message:

Ticket #558 - Adicionada funcionalidade de assinatura e criptografia de e-mails.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/setup/tables_update.inc.php

    r1034 r1035  
    1212                $test[] = '1.233'; 
    1313                function expressoMail1_2_upgrade1_233() { 
    14                         $setup_info['expressoMail1_2']['currentver'] = '1.234'; 
    15                         return $setup_info['expressoMail1_2']['currentver']; 
     14            $oProc = $GLOBALS['phpgw_setup']->oProc; 
     15            $oProc->CreateTable('phpgw_expressomail_contacts',array( 
     16                                'fd' => array( 
     17                                        'id_owner' => array( 'type' => 'int', 'precision' => 8, 'nullable' => false), 
     18                                        'data' => array( 'type' => 'text') 
     19                                ), 
     20                                'pk' => array('id_owner'), 
     21                                'fk' => array(), 
     22                                'ix' => array(), 
     23                                'uc' => array() 
     24                                ) 
     25                        ); 
     26 
     27            $oProc->CreateTable('phpgw_certificados',array( 
     28                                'fd' => array( 
     29                                        'email' => array( 'type' => 'varchar', 'precision' => 60, 'nullable' => false), 
     30                                        'chave_publica' => array( 'type' => 'text'), 
     31                                        'expirado' => array('type' => 'bool', 'default' => 'false'), 
     32                                        'revogado' => array('type' => 'bool', 'default' => 'false'), 
     33                                        'serialnumber' => array('type' => 'int', 'precision' => 8, 'nullable' => false), 
     34                                        'authoritykeyidentifier' => array( 'type' => 'text', 'nullable' => false), 
     35                                ), 
     36                                'pk' => array('email','serialnumber','authoritykeyidentifier'), 
     37                                'fk' => array(), 
     38                                'ix' => array(), 
     39                                'uc' => array() 
     40                                ) 
     41                        ); 
     42 
     43            $GLOBALS['setup_info']['expressoMail1_2']['currentver'] = '1.334'; 
     44            return $GLOBALS['setup_info']['expressoMail1_2']['currentver']; 
    1645                } 
    1746        }        
     
    5382        if ($GLOBALS['setup_info']['expressoMail1_2']['currentver'] == '1.222'){ 
    5483                $test[] = '1.222'; 
    55                 function expressoMail1_2_upgrade1_222() {return expressoMail1_2_upgrade1_230(); } 
     84                function expressoMail1_2_upgrade1_222() { 
     85                        $oProc = $GLOBALS['phpgw_setup']->oProc; 
     86                        $oProc->CreateTable('phpgw_expressomail_contacts',array( 
     87                                'fd' => array( 
     88                                        'id_owner' => array( 'type' => 'int', 'precision' => 8, 'nullable' => false), 
     89                                        'data' => array( 'type' => 'text') 
     90                                ), 
     91                                'pk' => array('id_owner'), 
     92                                'fk' => array(), 
     93                                'ix' => array(), 
     94                                'uc' => array() 
     95                                ) 
     96                        ); 
     97                        $oProc->CreateTable('phpgw_certificados',array( 
     98                                'fd' => array( 
     99                                        'email' => array( 'type' => 'varchar', 'precision' => 60, 'nullable' => false), 
     100                                        'chave_publica' => array( 'type' => 'text'), 
     101                                        'expirado' => array('type' => 'bool', 'default' => 'false') 
     102                                ), 
     103                                'pk' => array('email'), 
     104                                'fk' => array(), 
     105                                'ix' => array(), 
     106                                'uc' => array() 
     107                                ) 
     108                        ); 
     109                        $GLOBALS['setup_info']['expressoMail1_2']['currentver'] = '1.223'; 
     110                        return $GLOBALS['setup_info']['expressoMail1_2']['currentver']; 
     111        } 
    56112        } 
    57113        if ($GLOBALS['setup_info']['expressoMail1_2']['currentver'] == '1.2211'){ 
    58114                $test[] = '1.2211'; 
    59                 function expressoMail1_2_upgrade1_2211() {return expressoMail1_2_upgrade1_230();} 
     115                function expressoMail1_2_upgrade1_2211() { 
     116                        $oProc = $GLOBALS['phpgw_setup']->oProc; 
     117                        $oProc->CreateTable('phpgw_expressomail_contacts',array( 
     118                                'fd' => array( 
     119                                        'id_owner' => array( 'type' => 'int', 'precision' => 8, 'nullable' => false), 
     120                                        'data' => array( 'type' => 'text') 
     121                                ), 
     122                                'pk' => array('id_owner'), 
     123                                'fk' => array(), 
     124                                'ix' => array(), 
     125                                'uc' => array() 
     126                                ) 
     127                        ); 
     128                        $oProc->CreateTable('phpgw_certificados',array( 
     129                                'fd' => array( 
     130                                        'email' => array( 'type' => 'varchar', 'precision' => 60, 'nullable' => false), 
     131                                        'chave_publica' => array( 'type' => 'text'), 
     132                                        'expirado' => array('type' => 'bool', 'default' => 'false') 
     133                                ), 
     134                                'pk' => array('email'), 
     135                                'fk' => array(), 
     136                                'ix' => array(), 
     137                                'uc' => array() 
     138                                ) 
     139                        ); 
     140                        $GLOBALS['setup_info']['expressoMail1_2']['currentver'] = '1.223'; 
     141                        return $GLOBALS['setup_info']['expressoMail1_2']['currentver']; 
     142        } 
    60143        } 
    61144        if ($GLOBALS['setup_info']['expressoMail1_2']['currentver'] == '1.2201'){ 
     
    66149        if ($GLOBALS['setup_info']['expressoMail1_2']['currentver'] == '1.2031'){ 
    67150                $test[] = '1.2031'; 
    68                 function expressoMail1_2_upgrade1_2031() {return expressoMail1_2_upgrade1_230();} 
     151                function expressoMail1_2_upgrade1_2031() { 
     152                        $oProc = $GLOBALS['phpgw_setup']->oProc; 
     153                        $oProc->CreateTable('phpgw_expressomail_contacts',array( 
     154                                'fd' => array( 
     155                                        'id_owner' => array( 'type' => 'int', 'precision' => 8, 'nullable' => false), 
     156                                        'data' => array( 'type' => 'text') 
     157                                ), 
     158                                'pk' => array('id_owner'), 
     159                                'fk' => array(), 
     160                                'ix' => array(), 
     161                                'uc' => array() 
     162                                ) 
     163                        ); 
     164                        $oProc->CreateTable('phpgw_certificados',array( 
     165                                'fd' => array( 
     166                                        'email' => array( 'type' => 'varchar', 'precision' => 60, 'nullable' => false), 
     167                                        'chave_publica' => array( 'type' => 'text'), 
     168                                        'expirado' => array('type' => 'bool', 'default' => 'false') 
     169                                ), 
     170                                'pk' => array('email'), 
     171                                'fk' => array(), 
     172                                'ix' => array(), 
     173                                'uc' => array() 
     174                                ) 
     175                        ); 
     176                        $GLOBALS['setup_info']['expressoMail1_2']['currentver'] = '1.223'; 
     177                        return $GLOBALS['setup_info']['expressoMail1_2']['currentver']; 
     178        } 
    69179        }        
    70180?> 
Note: See TracChangeset for help on using the changeset viewer.