Mercurial > dive4elements > framework
diff artifact-database/src/main/resources/sql/org-postgresql-driver.properties @ 273:22a90706d32d
Enables the artifact server to set the TTL of a specific collection via REST call.
artifacts/trunk@2070 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 07 Jun 2011 16:27:47 +0000 |
parents | a2df2b48d2aa |
children | 92166f7c3842 |
line wrap: on
line diff
--- a/artifact-database/src/main/resources/sql/org-postgresql-driver.properties Tue Jun 07 11:06:54 2011 +0000 +++ b/artifact-database/src/main/resources/sql/org-postgresql-driver.properties Tue Jun 07 16:27:47 2011 +0000 @@ -97,6 +97,8 @@ AND CURRENT_TIMESTAMP - c.last_access > (c.ttl || ' milliseconds')::interval \ AND a.id NOT IN ($LOCKED_IDS$) +collections.update.ttl=UPDATE collections SET ttl = ? WHERE gid = ?::uuid + collections.touch.by.gid =\ UPDATE collections SET last_access = CURRENT_TIMESTAMP \ WHERE gid = ?::uuid