Change 'timestamp' properties on objects to more descriptive names

This commit is contained in:
Alex Cabal 2022-06-29 17:19:28 -05:00
parent 18f761929a
commit dbefba6b94
32 changed files with 74 additions and 74 deletions

View file

@ -8,16 +8,16 @@ require_once('/standardebooks.org/web/lib/Core.php');
Db::Query('
update Patrons
set DeactivatedTimestamp = utc_timestamp()
set Ended = utc_timestamp()
where UserId not in
(
select distinct UserId from Payments where
UserId is not null
and
(
(IsRecurring = 1 and Amount >= 10 and Timestamp > utc_timestamp() - interval 45 day)
(IsRecurring = 1 and Amount >= 10 and Created > utc_timestamp() - interval 45 day)
or
(IsRecurring = 0 and Amount >= 100 and Timestamp > utc_timestamp() - interval 1 year)
(IsRecurring = 0 and Amount >= 100 and Created > utc_timestamp() - interval 1 year)
)
)
');