- Timestamp:
- 06/15/12 09:17:48 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/2.4.1-3/expressoMail1_2/setup/tables_update.inc.php
r6468 r6512 291 291 $oProc->query('SELECT * FROM phpgw_expressomail_contacts'); 292 292 $return = array(); 293 while($oProc->next_record()) 294 $return[$oProc->f('id_owner')] = $oProc->f('data'); 295 296 foreach ($return as $owner => &$value) { 297 $contacts = unserialize($value); 298 foreach ($contacts as &$contact) { 299 $info = explode('#', $contact['email']); 300 $oProc->query("INSERT INTO expressomail_dynamic_contact (owner, name ,mail , number_of_messages ,timestamp) values ('".$owner."', '".$info[0]."', '".$info[1]."', 1, '".$contact['timestamp']."');"); 293 while($oProc->next_record()) 294 $return[$oProc->f('id_owner')] = $oProc->f('data'); 295 296 foreach ($return as $owner => &$value) { 297 $contacts = unserialize($value); 298 foreach ($contacts as &$contact) { 299 $info = explode('#', $contact['email']); 300 $oProc->query("INSERT INTO expressomail_dynamic_contact (owner, name ,mail , number_of_messages ,timestamp) values ('".$owner."', '".$info[0]."', '".$info[1]."', 1, '".$contact['timestamp']."');"); 301 } 301 302 } 302 } 303 //////////////////////////////////////////////////////////// 304 305 //Deleta tabela antiga 303 304 //Deleta tabela antiga 306 305 $oProc->DropTable('phpgw_expressomail_contacts'); 307 306 307 /* Remove a restricao de quantidade de contatos recentes */ 308 $oProc->query("DELETE FROM phpgw_config WHERE config_app = 'expressoMail1_2' AND config_name = 'expressoMail_Number_of_dynamic_contacts'"); 308 309 309 310 $GLOBALS['setup_info']['expressoMail1_2']['currentver'] = '2.4.7';
Note: See TracChangeset
for help on using the changeset viewer.