DeleteAt field in the Posts table

Dear all,

I think that the DeleteAt field in the Posts is 0 for a post that is available ie. not deleted. It is marked with the unix timestamp when it is deleted.

I am reading this:

This line:

update Posts set DeleteAt=unix_timestamp()*1000 where createat < (unix_timestamp()-86400)*1000 AND DeleteAt != 0; 

should be :

update Posts set DeleteAt=unix_timestamp()*1000 where createat < (unix_timestamp()-86400)*1000 AND DeleteAt = 0;

My understanding is that the above will delete all posts created prior to 24 hours that have not been deleted.

Do I misunderstand ?