| @@ 893-896 (lines=4) @@ | ||
| 890 | { |
|
| 891 | $calendar_data = Array(); |
|
| 892 | $GLOBALS['egw_setup']->oProc->query('SELECT cal_id, category FROM phpgw_cal',__LINE__,__FILE__); |
|
| 893 | while($GLOBALS['egw_setup']->oProc->next_record()) |
|
| 894 | { |
|
| 895 | $calendar_data[$GLOBALS['egw_setup']->oProc->f('cal_id')] = $GLOBALS['egw_setup']->oProc->f('category'); |
|
| 896 | } |
|
| 897 | ||
| 898 | $GLOBALS['egw_setup']->oProc->AlterColumn('phpgw_cal','category',array('type' => 'varchar', 'precision' => 30,'nullable' => True)); |
|
| 899 | ||
| @@ 1042-1045 (lines=4) @@ | ||
| 1039 | // creates uid's for all entries which do not have unique ones, they are '[email protected]' |
|
| 1040 | // very old entries even have an empty uid, see 0.9.16.006 update |
|
| 1041 | $GLOBALS['egw_setup']->oProc->query("SELECT config_name,config_value FROM {$GLOBALS['egw_setup']->config_table} WHERE config_name IN ('install_id','mail_suffix') AND config_app='phpgwapi'",__LINE__,__FILE__); |
|
| 1042 | while ($GLOBALS['egw_setup']->oProc->next_record()) |
|
| 1043 | { |
|
| 1044 | $config[$GLOBALS['egw_setup']->oProc->f(0)] = $GLOBALS['egw_setup']->oProc->f(1); |
|
| 1045 | } |
|
| 1046 | $GLOBALS['egw_setup']->oProc->query('UPDATE phpgw_cal SET uid='. |
|
| 1047 | $GLOBALS['egw_setup']->db->concat($GLOBALS['egw_setup']->db->quote('cal-'),'cal_id', |
|
| 1048 | $GLOBALS['egw_setup']->db->quote('-'.$config['install_id'].'@'. |
|
| @@ 196-199 (lines=4) @@ | ||
| 193 | // ORDER BY link_app2 DESC gives addressbook the highes precedens, use ASC for projects |
|
| 194 | $GLOBALS['egw_setup']->oProc->query("SELECT link_id,link_id1 FROM phpgw_links WHERE link_app1='infolog' ORDER BY link_app2 DESC"); |
|
| 195 | $links = array(); |
|
| 196 | while ($GLOBALS['egw_setup']->oProc->next_record()) |
|
| 197 | { |
|
| 198 | $links[$GLOBALS['egw_setup']->oProc->f(1)] = $GLOBALS['egw_setup']->oProc->f(0); |
|
| 199 | } |
|
| 200 | reset($links); |
|
| 201 | while (list($info_id,$link_id) = each($links)) |
|
| 202 | { |
|