Ignore:
Timestamp:
03/16/12 15:02:14 (12 years ago)
Author:
natan
Message:

Ticket #2434 - Desenvolvimento do backend de suporte a excessoes nas repeticoes

Location:
trunk/expressoCalendar/setup
Files:
3 edited

Legend:

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

    r5715 r5741  
    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.002'; 
     15        $setup_info['expressoCalendar']['version']      = '1.003'; 
    1616        $setup_info['expressoCalendar']['app_order']    = 10; 
    1717         
  • trunk/expressoCalendar/setup/tables_current.inc.php

    r5715 r5741  
    229229                'bysetpos' => array(  'type' => 'varchar','precision' => '50', 'nullable' => True), 
    230230                'wkst' => array(  'type' => 'varchar','precision' => '50', 'nullable' => True), 
     231                'exceptions' => array(  'type' => 'varchar','precision' => '50', 'nullable' => True), 
    231232                'interval' => array(  'type' => 'int', 'precision' => '8', 'nullable' => True) 
    232233            ), 
     
    254255                'id' => array( 'type' => 'auto', 'nullable' => False), 
    255256                'occurrence' => array(  'type' => 'bigint','precision' => '16', 'nullable' => False), 
    256                 'repeat_id' => array(  'type' => 'int', 'precision' => '8', 'nullable' => False) 
     257                'exception' => array(  'type' => 'smallint','precision' => '1', 'nullable' => False), 
     258                'repeat_id' => array(  'type' => 'int', 'precision' => '8', 'nullable' => False) 
    257259            ), 
    258260 
  • trunk/expressoCalendar/setup/tables_update.inc.php

    r5715 r5741  
    7070                ); 
    7171 
    72                 $oProc->query("ALTER TABLE calendar_repeat_occurrence ADD CONSTRAINT fk_calendar_repeat_to_calendar_repeat_occurrence FOREIGN KEY (repeat_id) REFERENCES calendar_repeat (id) MATCH SIMPLE ON UPDATE CASCADE ON DELETE CASCADE;");       
     72                $oProc->query("ALTER TABLE calendar_participant ADD COLUMN receive_notification smallint not null DEFAULT 1 ");  
    7373 
    7474                $GLOBALS['setup_info']['expressoCalendar']['currentver'] = '1.002'; 
    7575        return $GLOBALS['setup_info']['expressoCalendar']['currentver']; 
    7676        } 
     77 
     78        $test[] = '1.002'; 
     79        function expressoCalendar_upgrade1_002() { 
     80 
     81                $oProc = $GLOBALS['phpgw_setup']->oProc; 
     82 
     83                $oProc->query("ALTER TABLE calendar_repeat_occurrence ADD COLUMN exception smallint DEFAULT 0;"); 
     84 
     85                $GLOBALS['setup_info']['expressoCalendar']['currentver'] = '1.003'; 
     86        return $GLOBALS['setup_info']['expressoCalendar']['currentver']; 
     87        } 
    7788?> 
Note: See TracChangeset for help on using the changeset viewer.