Hello.
Tell me how to implement the following.
The script will run on the crown, which from a certain database table (dates, status) should pull out all values that are older than a month from the current date. The date in the dates field is stored in unixtime and puts these records in the status field to inactive.
That is, as I understand it, you need to get the current date at unixtime, then get the date a month earlier (-2678400), and if the value in dates is less than or equal to it, then set the status to inactive. Help with the code in terms of sql query, frozen.