mirror of
https://github.com/standardebooks/web.git
synced 2025-07-13 18:11:52 -04:00
Change 'timestamp' properties on objects to more descriptive names
This commit is contained in:
parent
18f761929a
commit
dbefba6b94
32 changed files with 74 additions and 74 deletions
|
@ -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)
|
||||
)
|
||||
)
|
||||
');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue