Changeset 3047


Ignore:
Timestamp:
07/14/10 14:01:22 (10 years ago)
Author:
niltonneto
Message:

Ticket #1141 - Corrigido problema sobre registro de Logs do ExpressoAdmin.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc-expressolivre/debian/arqs-conf/expresso.dump

    r2327 r3047  
    12981298    manager character varying(50) NOT NULL, 
    12991299    action character varying(255) NOT NULL, 
    1300     userinfo character varying(255) NOT NULL, 
    1301     groupinfo character varying(255) NOT NULL, 
    1302     appinfo character varying(255) NOT NULL, 
    1303     msg character varying(255) NOT NULL 
     1300    userinfo character varying(255) NOT NULL 
    13041301); 
    13051302 
     
    1231312310-- 
    1231412311 
    12315 COPY phpgw_expressoadmin_log (date, manager, action, userinfo, groupinfo, appinfo, msg) FROM stdin; 
     12312COPY phpgw_expressoadmin_log (date, manager, action, userinfo) FROM stdin; 
    1231612313\. 
    1231712314 
  • trunk/expressoAdmin1_2/setup/setup.inc.php

    r2189 r3047  
    1313        $setup_info['expressoAdmin1_2']['title']        = 'Expresso Admin'; 
    1414        /* Ao incrementar versão, não esquecer de declarar função do tables_update.inc.php*/ 
    15         $setup_info['expressoAdmin1_2']['version']      = '2.1.000'; 
     15        $setup_info['expressoAdmin1_2']['version']      = '2.2.000'; 
    1616        $setup_info['expressoAdmin1_2']['app_order']    = 1; 
    1717        $setup_info['expressoAdmin1_2']['tables'][]             = 'phpgw_expressoadmin'; 
  • trunk/expressoAdmin1_2/setup/tables_update.inc.php

    r1836 r3047  
    88        * Free Software Foundation; either version 2 of the License, or (at your   * 
    99        * option) any later version.                                               * 
    10         \**************************************************************************/     
    11         $test[] = '1.2'; 
    12         function expressoAdmin1_2_upgrade1_2() 
    13         { 
    14                 $GLOBALS['setup_info']['expressoAdmin1_2']['currentver'] = '1.21'; 
    15                 return $GLOBALS['setup_info']['expressoAdmin1_2']['currentver']; 
    16         } 
    17          
    18         $test[] = '1.21'; 
    19         function expressoAdmin1_2_upgrade1_21() 
    20         { 
    21                 $oProc = $GLOBALS['phpgw_setup']->oProc; 
    22  
    23                 $oProc->CreateTable( 
    24                         'phpgw_expressoadmin_samba', array( 
    25                                 'fd' => array( 
    26                                         'samba_domain_name' => array( 'type' => 'varchar', 'precision' => 50), 
    27                                         'samba_domain_sid' => array( 'type' => 'varchar', 'precision' => 100) 
    28                                 ), 
    29                                 'pk' => array('samba_domain_name'), 
    30                                 'fk' => array(), 
    31                                 'ix' => array(), 
    32                                 'uc' => array() 
    33                         ) 
    34                 ); 
    35                  
    36                 $GLOBALS['setup_info']['expressoAdmin1_2']['currentver'] = '1.240'; 
    37                 return $GLOBALS['setup_info']['expressoAdmin1_2']['currentver']; 
    38         } 
    39  
    40         $test[] = '1.240'; 
    41         function expressoAdmin1_2_upgrade1_240() 
    42         { 
    43                 $GLOBALS['setup_info']['expressoAdmin1_2']['currentver'] = '1.250'; 
    44                 return $GLOBALS['setup_info']['expressoAdmin1_2']['currentver']; 
    45         } 
    46          
    47         $test[] = '1.250'; 
    48         function expressoAdmin1_2_upgrade1_250() 
    49         { 
    50                 $GLOBALS['phpgw_setup']->oProc->DropColumn('phpgw_expressoadmin_log','','appinfo'); 
    51                 $GLOBALS['phpgw_setup']->oProc->DropColumn('phpgw_expressoadmin_log','','groupinfo'); 
    52                 $GLOBALS['phpgw_setup']->oProc->DropColumn('phpgw_expressoadmin_log','','msg'); 
    53                 $GLOBALS['setup_info']['expressoAdmin1_2']['currentver'] = '1.261'; 
    54                 return $GLOBALS['setup_info']['expressoAdmin1_2']['currentver']; 
    55         } 
    56          
    57         $test[] = '1.261'; 
    58         function expressoAdmin1_2_upgrade1_261() 
    59         { 
    60                 $GLOBALS['setup_info']['expressoAdmin1_2']['currentver'] = '2.0.000'; 
    61                 return $GLOBALS['setup_info']['expressoAdmin1_2']['currentver']; 
    62         } 
     10        \**************************************************************************/ 
    6311        $test[] = '2.0.000'; 
    6412        function expressoAdmin1_2_upgrade2_0_000() 
     
    7018        function expressoAdmin1_2_upgrade2_0_001() 
    7119        { 
     20                $GLOBALS['setup_info']['expressoAdmin1_2']['currentver'] = '2.0.002'; 
     21                return $GLOBALS['setup_info']['expressoAdmin1_2']['currentver']; 
     22        } 
     23        $test[] = '2.0.002'; 
     24        function expressoAdmin1_2_upgrade2_0_002() 
     25        { 
     26                $GLOBALS['setup_info']['expressoAdmin1_2']['currentver'] = '2.0.003'; 
     27                return $GLOBALS['setup_info']['expressoAdmin1_2']['currentver']; 
     28        } 
     29        $test[] = '2.0.003'; 
     30        function expressoAdmin1_2_upgrade2_0_003() 
     31        { 
     32                $GLOBALS['setup_info']['expressoAdmin1_2']['currentver'] = '2.0.004'; 
     33                return $GLOBALS['setup_info']['expressoAdmin1_2']['currentver']; 
     34        } 
     35        $test[] = '2.0.004'; 
     36        function expressoAdmin1_2_upgrade2_0_004() 
     37        { 
     38                $GLOBALS['setup_info']['expressoAdmin1_2']['currentver'] = '2.0.005'; 
     39                return $GLOBALS['setup_info']['expressoAdmin1_2']['currentver']; 
     40        } 
     41        $test[] = '2.0.005'; 
     42        function expressoAdmin1_2_upgrade2_0_005() 
     43        { 
     44                $GLOBALS['phpgw_setup']->db->query("alter table phpgw_expressoadmin_log drop groupinfo"); 
     45                $GLOBALS['phpgw_setup']->db->query("alter table phpgw_expressoadmin_log drop appinfo"); 
     46                $GLOBALS['phpgw_setup']->db->query("alter table phpgw_expressoadmin_log drop msg"); 
    7247                $GLOBALS['setup_info']['expressoAdmin1_2']['currentver'] = '2.1.000'; 
     48                return $GLOBALS['setup_info']['expressoAdmin1_2']['currentver']; 
     49        } 
     50        $test[] = '2.1.000'; 
     51        function expressoAdmin1_2_upgrade2_1_000() 
     52        { 
     53                $GLOBALS['setup_info']['expressoAdmin1_2']['currentver'] = '2.2.000'; 
    7354                return $GLOBALS['setup_info']['expressoAdmin1_2']['currentver']; 
    7455        } 
Note: See TracChangeset for help on using the changeset viewer.