projects
/
contrib
/
pines.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd85d31
)
adding expiration date parameter
author
Chris Sharp
<csharp@georgialibraries.org>
Thu, 2 Jul 2015 17:58:40 +0000
(13:58 -0400)
committer
Chris Sharp
<csharp@georgialibraries.org>
Thu, 2 Jul 2015 17:58:40 +0000
(13:58 -0400)
sql/set_patrons_inactive.sql
patch
|
blob
|
history
diff --git
a/sql/set_patrons_inactive.sql
b/sql/set_patrons_inactive.sql
index
7c87653
..
a506947
100644
(file)
--- a/
sql/set_patrons_inactive.sql
+++ b/
sql/set_patrons_inactive.sql
@@
-44,6
+44,8
@@
and not exists (
and au.active
-- we don't care about deleted users
and not au.deleted
+-- don't include non-expired users that don't otherwise meet the "inactive" criteria
+and expire_date < now()
-- we don't want users that have been created within the last 3 years
and (now() - au.create_date) > '3 years'
-- restrict to patron profiles ('Patrons' = 45)
@@
-53,3
+55,4
@@
and profile in (
)
;
commit;
+