Ignore:
Timestamp:
12/03/12 17:01:59 (11 years ago)
Author:
douglas
Message:

Ticket #3143 - problema ao copiar evento ou tarefa no modulo expressocalendar

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.4/expressoCalendar/setup/tables_update.inc.php

    r7383 r7594  
    190190        $GLOBALS['setup_info']['expressoCalendar']['currentver'] = '1.010';  
    191191        return $GLOBALS['setup_info']['expressoCalendar']['currentver'];  
    192     };     
     192    }; 
     193 
     194    $test[] = '1.010'; 
     195    function expressoCalendar_upgrade1_010() { 
     196        $oProc = $GLOBALS['phpgw_setup']->oProc; 
     197            $oProc->CreateTable('calendar_timezones', array( 
     198                'fd' => array( 
     199                    'id' => array( 'type' => 'auto', 'nullable' => False), 
     200                    'timezone' => array(  'type' => 'varchar','precision' => '150', 'nullable' => False), 
     201 
     202                    'standard_frequency' => array(  'type' => 'varchar','precision' => '20', 'nullable' => False), 
     203                    'standard_dtstart' => array(  'type' => 'varchar','precision' => '20', 'nullable' => True), 
     204                    'standard_byday' => array(  'type' => 'varchar','precision' => '50', 'nullable' => True), 
     205                    'standard_bymonth' => array(  'type' => 'varchar','precision' => '50', 'nullable' => True), 
     206                    'standard_from' => array(  'type' => 'varchar','precision' => '10', 'nullable' => True), 
     207                    'standard_to' => array(  'type' => 'varchar','precision' => '10', 'nullable' => True), 
     208 
     209                    'daylight_frequency' => array(  'type' => 'varchar','precision' => '20', 'nullable' => False), 
     210                    'daylight_dtstart' => array(  'type' => 'varchar','precision' => '20', 'nullable' => True), 
     211                    'daylight_byday' => array(  'type' => 'varchar','precision' => '50', 'nullable' => True), 
     212                    'daylight_bymonth' => array(  'type' => 'varchar','precision' => '50', 'nullable' => True), 
     213                    'daylight_from' => array(  'type' => 'varchar','precision' => '10', 'nullable' => True), 
     214                    'daylight_to' => array(  'type' => 'varchar','precision' => '10', 'nullable' => True), 
     215 
     216                    'dtstamp' => array( 'type' => 'bigint', 'precision' => '16', 'precision' => '16', 'nullable' => False) 
     217                ), 
     218                'pk' => array('id'), 
     219                'fk' => array(), 
     220                'ix' => array(), 
     221                'uc' => array() 
     222            ) 
     223        ); 
     224 
     225        $oProc->query("INSERT INTO calendar_timezones(timezone, standard_frequency, standard_dtstart, standard_byday, 
     226        standard_bymonth, standard_from, standard_to, daylight_frequency, daylight_dtstart, daylight_byday, 
     227        daylight_bymonth, daylight_from, daylight_to, dtstamp) VALUES ('America/Sao_Paulo', 'YEARLY', '23:59', 
     228        '4SA', '2', '-0200','-0300', 'YEARLY', '23:59', '3SA', '10', '-0300','-0200', '". time() ."');"); 
     229 
     230        $GLOBALS['setup_info']['expressoCalendar']['currentver'] = '1.011'; 
     231        return $GLOBALS['setup_info']['expressoCalendar']['currentver']; 
     232    };  
    193233 
    194234?> 
Note: See TracChangeset for help on using the changeset viewer.