HomeHelpTrac

Changeset 8685 for trunk/periodic


Ignore:
Timestamp:
01/21/09 02:19:54 (3 years ago)
Author:
Alexander Ermashev
Message:
  • rename the table's (ProfilesTrack?) fields from Member to ID, and Arrive to When
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/periodic/cmd.php

    r8652 r8685  
    5858    if ( $db_clean_profiles > 0) 
    5959    { 
    60         $res = db_res("SELECT ID FROM Profiles WHERE (TO_DAYS(NOW()) - TO_DAYS(DateLastLogin)) > $db_clean_profiles"); 
     60        $res = db_res("SELECT `ID` FROM Profiles WHERE (TO_DAYS(NOW()) - TO_DAYS(`DateLastLogin`)) > $db_clean_profiles"); 
    6161        if ( $res ) 
    6262        { 
     
    7272    if ( $db_clean_vkiss > 0 ) 
    7373    { 
    74         $res = db_res("DELETE FROM Greetings WHERE (TO_DAYS(NOW()) - TO_DAYS(Arrived)) > $db_clean_vkiss"); 
     74        $res = db_res("DELETE FROM `Greetings` WHERE (TO_DAYS(NOW()) - TO_DAYS(`When`)) > $db_clean_vkiss"); 
    7575        if ( $res ) 
    7676            $db_clean_vkiss_num = mysql_affected_rows(); 
     
    7979    if ( $db_clean_msg > 0 ) 
    8080    { 
    81         $res = db_res("DELETE FROM Messages WHERE (TO_DAYS(NOW()) - TO_DAYS(`Date`)) > $db_clean_msg"); 
     81        $res = db_res("DELETE FROM `Messages` WHERE (TO_DAYS(NOW()) - TO_DAYS(`Date`)) > $db_clean_msg"); 
    8282        if ( $res ) 
    8383            $db_clean_msg_num = mysql_affected_rows(); 
     
    8686    if ( $db_clean_views > 0 ) 
    8787    { 
    88         $res = db_res("DELETE FROM ProfilesTrack WHERE (TO_DAYS(NOW())-TO_DAYS(`Arrived`)) > $db_clean_views"); 
     88        $res = db_res("DELETE FROM `ProfilesTrack` WHERE (TO_DAYS(NOW())-TO_DAYS(`When`)) > $db_clean_views"); 
    8989        if ( $res ) 
    9090            $db_clean_views_num = mysql_affected_rows(); 
Note: See TracChangeset for help on using the changeset viewer.