Thread: Clan Time Limit
View Single Post
Old 15.01.2006, 10:21   #8
Mayii
Архивный участник
 
Join Date: Aug 2005
Posts: 113
Default

just create this proc... and add a scheduler to do EXEC DeletePenalty

CREATE PROC DeletePenalty
AS
UPDATE user_data SET pledge_withdraw_time=0 WHERE pledge_withdraw_time>0
UPDATE user_data SET pledge_ousted_time=0 WHERE pledge_ousted_time>0
UPDATE Pledge SET dismiss_reserved_time=0 WHERE dismiss_reserved_time>0
UPDATE Pledge SET alliance_withdraw_time=0 WHERE alliance_withdraw_time>0
UPDATE Pledge SET alliance_dismiss_time=0 WHERE alliance_dismiss_time>0
UPDATE Pledge SET alliance_ousted_time=0 WHERE alliance_ousted_time>0
UPDATE Pledge SET oust_time=0 WHERE oust_time>0
UPDATE Alliance SET oust_time=0 WHERE oust_time>0
GO
Mayii is offline