Mercurial > dive4elements > framework
diff artifact-database/doc/schema-h2.sql @ 229:328ef982d768
When an artifact is touched the collections which contain the artifact are touched, too.
artifacts/trunk@1631 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 31 Mar 2011 08:58:42 +0000 |
parents | face2302387c |
children | aa9f2f5ff032 |
line wrap: on
line diff
--- a/artifact-database/doc/schema-h2.sql Thu Mar 31 08:42:53 2011 +0000 +++ b/artifact-database/doc/schema-h2.sql Thu Mar 31 08:58:42 2011 +0000 @@ -50,4 +50,8 @@ UNIQUE (collection_id, artifact_id) ); +CREATE TRIGGER collections_access_update_trigger AFTER UPDATE + ON TABLE artifacts FOR EACH ROW + CALL "de.intevation.artifactdatabase.h2.CollectionAccessUpdateTrigger"; + COMMIT;