remove no colum data from SQL query
XP colum data has been removed from SQL database.
This commit is contained in:
parent
307247f6e9
commit
52fe146e93
@ -114,7 +114,7 @@ public OnGameModeInit()
|
|||||||
mysql_function_query( dbHandle, "UPDATE USERS SET VIP_PACKAGE=0, VIP_EXPIRE=0 WHERE UNIX_TIMESTAMP() > VIP_EXPIRE AND VIP_EXPIRE != 0", true, "onRemoveInactiveRows", "d", 1 );
|
mysql_function_query( dbHandle, "UPDATE USERS SET VIP_PACKAGE=0, VIP_EXPIRE=0 WHERE UNIX_TIMESTAMP() > VIP_EXPIRE AND VIP_EXPIRE != 0", true, "onRemoveInactiveRows", "d", 1 );
|
||||||
|
|
||||||
// Truncate accounts older than 2 months
|
// Truncate accounts older than 2 months
|
||||||
mysql_function_query( dbHandle, "UPDATE USERS SET CASH=0,BANKMONEY=0,COINS=0.0,XP=0 WHERE UNIX_TIMESTAMP()-`LASTLOGGED`>5259487", true, "onRemoveInactiveRows", "d", 2 );
|
mysql_function_query( dbHandle, "UPDATE USERS SET CASH=0,BANKMONEY=0,COINS=0.0 WHERE UNIX_TIMESTAMP()-`LASTLOGGED`>5259487", true, "onRemoveInactiveRows", "d", 2 );
|
||||||
|
|
||||||
// Remove inactive homes older than 2 weeks
|
// Remove inactive homes older than 2 weeks
|
||||||
mysql_function_query( dbHandle, "DELETE a2,a3 FROM `USERS` a1 " \
|
mysql_function_query( dbHandle, "DELETE a2,a3 FROM `USERS` a1 " \
|
||||||
|
Loading…
Reference in New Issue
Block a user