Ignore:
Timestamp:
11/29/12 17:12:33 (11 years ago)
Author:
acoutinho
Message:

Ticket #3233 - Problemas na configuracao da hora de um evento.

Location:
trunk/expressoCalendar/setup
Files:
3 edited

Legend:

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

    r7164 r7579  
    1313        $setup_info['expressoCalendar']['title']        = 'Expresso Calendar'; 
    1414        /* Ao incrementar versão, não esquecer de declarar função do tables_update.inc.php*/ 
    15         $setup_info['expressoCalendar']['version']      = '1.009'; 
     15        $setup_info['expressoCalendar']['version']      = '1.011'; 
    1616        $setup_info['expressoCalendar']['app_order']    = 10; 
    1717 
  • trunk/expressoCalendar/setup/tables_current.inc.php

    r7378 r7579  
    248248                'frequency' => array(  'type' => 'varchar','precision' => '20', 'nullable' => False), 
    249249                'until' => array(  'type' => 'int', 'precision' => '8', 'nullable' => True), 
    250                 'dtstart' => array(  'type' => 'bigint','precision' => '16', 'nullable' => True), 
     250                        'dtstart' => array(  'type' => 'bigint','precision' => '16', 'nullable' => True), 
    251251                'count' => array(  'type' => 'int', 'precision' => '8', 'nullable' => True), 
    252252                'object_id' => array(  'type' => 'int', 'precision' => '8', 'nullable' => False), 
     
    261261                'bysetpos' => array(  'type' => 'varchar','precision' => '50', 'nullable' => True), 
    262262                'wkst' => array(  'type' => 'varchar','precision' => '50', 'nullable' => True), 
    263                 'exceptions' => array(  'type' => 'varchar','precision' => '50', 'nullable' => True), 
     263                        'exceptions' => array(  'type' => 'varchar','precision' => '50', 'nullable' => True), 
    264264                'interval' => array(  'type' => 'int', 'precision' => '8', 'nullable' => True) 
    265265            ), 
     
    334334            'uc' => array() 
    335335                ), 
     336 
     337 
     338        'calendar_timezones' => array( 
     339            'fd' => array( 
     340                'id' => array( 'type' => 'auto', 'nullable' => False), 
     341                'timezone' => array(  'type' => 'varchar','precision' => '150', 'nullable' => False), 
     342 
     343                'standard_frequency' => array(  'type' => 'varchar','precision' => '20', 'nullable' => False), 
     344                'standard_dtstart' => array(  'type' => 'varchar','precision' => '20', 'nullable' => True), 
     345                'standard_byday' => array(  'type' => 'varchar','precision' => '50', 'nullable' => True), 
     346                'standard_bymonth' => array(  'type' => 'varchar','precision' => '50', 'nullable' => True), 
     347                'standard_from' => array(  'type' => 'varchar','precision' => '10', 'nullable' => True), 
     348                'standard_to' => array(  'type' => 'varchar','precision' => '10', 'nullable' => True), 
     349 
     350                'daylight_frequency' => array(  'type' => 'varchar','precision' => '20', 'nullable' => False), 
     351                'daylight_dtstart' => array(  'type' => 'varchar','precision' => '20', 'nullable' => True), 
     352                'daylight_byday' => array(  'type' => 'varchar','precision' => '50', 'nullable' => True), 
     353                'daylight_bymonth' => array(  'type' => 'varchar','precision' => '50', 'nullable' => True), 
     354                'daylight_from' => array(  'type' => 'varchar','precision' => '10', 'nullable' => True), 
     355                'daylight_to' => array(  'type' => 'varchar','precision' => '10', 'nullable' => True), 
     356 
     357                'dtstamp' => array( 'type' => 'bigint', 'precision' => '16', 'precision' => '16', 'nullable' => False) 
     358            ), 
     359            'pk' => array('id'), 
     360            'fk' => array(), 
     361            'ix' => array(), 
     362            'uc' => array() 
     363        ), 
    336364                 
    337365        ); 
  • trunk/expressoCalendar/setup/tables_update.inc.php

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