Ignore:
Timestamp:
09/04/12 17:09:47 (12 years ago)
Author:
acoutinho
Message:

Ticket #3062 - Incluir o uid do dono de uma agenda ao pesquisa-la

File:
1 edited

Legend:

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

    r6996 r7164  
    171171            return $GLOBALS['setup_info']['expressoCalendar']['currentver']; 
    172172        }; 
     173 
     174    $test[] = '1.008'; 
     175    function expressoCalendar_upgrade1_008() { 
     176        $oProc = $GLOBALS['phpgw_setup']->oProc; 
     177 
     178        $oProc->query("ALTER TABLE calendar_permission ADD COLUMN owner bigint;"); 
     179        $oProc->query("UPDATE calendar_permission SET owner = sig.user_uidnumber FROM calendar_signature as sig WHERE (sig.calendar_id = object_id AND sig.is_owner = '1');"); 
     180 
     181        $GLOBALS['setup_info']['expressoCalendar']['currentver'] = '1.009'; 
     182        return $GLOBALS['setup_info']['expressoCalendar']['currentver']; 
     183    }; 
    173184         
    174185?> 
Note: See TracChangeset for help on using the changeset viewer.