Mercurial > dive4elements > framework
diff artifact-database/src/main/resources/sql/org-h2-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-h2-driver.properties Tue Jun 07 11:06:54 2011 +0000 +++ b/artifact-database/src/main/resources/sql/org-h2-driver.properties Tue Jun 07 16:27:47 2011 +0000 @@ -97,6 +97,8 @@ AND DATEDIFF('MILLISECOND', c.last_access, CURRENT_TIMESTAMP) > c.ttl \ AND a.id NOT IN ($LOCKED_IDS$) +collections.update.ttl=UPDATE collections SET ttl = ? WHERE id = ? + collections.touch.trigger.function = \ UPDATE collections SET last_access = current_timestamp \ WHERE id IN \