Changeset 5203


Ignore:
Timestamp:
11/23/11 16:20:35 (12 years ago)
Author:
acoutinho
Message:

Ticket #2341 - Verificar scripts de atualizacao de tabelas da versao 2.4

Location:
trunk/calendar/setup
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/calendar/setup/setup.inc.php

    r5132 r5203  
    1212 
    1313        $setup_info['calendar']['name']    = 'calendar'; 
    14         $setup_info['calendar']['version'] = '2.0.008'; 
     14        $setup_info['calendar']['version'] = '2.0.009'; 
    1515        $setup_info['calendar']['app_order'] = 3; 
    1616        $setup_info['calendar']['enable']  = 1; 
  • trunk/calendar/setup/tables_current.inc.php

    r5132 r5203  
    3030                                'reference' => array('type' => 'int','precision' => '8','nullable' => False,'default' => '0'), 
    3131                                'ex_participants' => array('type' => 'text','nullable' => True), 
     32                                'observations' => array('type' => 'text','nullable' => True), 
     33                                'attachment' => array('type' => 'text','nullable' => True), 
     34                                'alter_by' => array('type' => 'varchar','precision' => '160','nullable' => True) 
    3235                        ), 
    3336                        'pk' => array('cal_id'), 
  • trunk/calendar/setup/tables_update.inc.php

    r5132 r5203  
    108108        function calendar_upgrade2_0_007() { 
    109109                $GLOBALS['setup_info']['calendar']['currentver'] = '2.0.008'; 
    110                 $GLOBALS['phpgw_setup']->db->query("ALTER TABLE phpgw_cal ADD COLUMN organizer character varying(255);");  
     110                $GLOBALS['phpgw_setup']->db->query("ALTER TABLE phpgw_cal ADD COLUMN organizer character varying(255);"); 
     111            return $GLOBALS['setup_info']['calendar']['currentver']; 
     112        } 
     113         
     114                $test[] = '2.0.008'; 
     115        function calendar_upgrade2_0_008() { 
     116                $GLOBALS['setup_info']['calendar']['currentver'] = '2.0.009'; 
     117                $GLOBALS['phpgw_setup']->db->query("ALTER TABLE phpgw_cal ADD COLUMN observations text;"); 
     118                $GLOBALS['phpgw_setup']->db->query("ALTER TABLE phpgw_cal ADD COLUMN attachment text;"); 
     119                $GLOBALS['phpgw_setup']->db->query("ALTER TABLE phpgw_cal ADD COLUMN alter_by character varying(160);"); 
    111120            return $GLOBALS['setup_info']['calendar']['currentver']; 
    112121        } 
Note: See TracChangeset for help on using the changeset viewer.