diff flys-artifacts/src/main/resources/datacage-sql/org-postgresql-driver.properties @ 1004:0e8c03b69627

Datacage: completed backend listener stuff. flys-artifacts/trunk@2444 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 01 Aug 2011 20:35:43 +0000
parents c58da6dd15ed
children 1917f32701dc
line wrap: on
line diff
--- a/flys-artifacts/src/main/resources/datacage-sql/org-postgresql-driver.properties	Mon Aug 01 16:53:54 2011 +0000
+++ b/flys-artifacts/src/main/resources/datacage-sql/org-postgresql-driver.properties	Mon Aug 01 20:35:43 2011 +0000
@@ -20,3 +20,8 @@
 
 update.collection.name = UPDATE collections SET name = ? WHERE gid = ?::uuid
 delete.artifact.from.collection = DELETE FROM collection_items WHERE collection_id = ? AND artifact_id = ?
+delete.collection.by.gid = DELETE FROM collections WHERE gid = ?::uuid
+delete.user.by.gid = DELETE FROM user WHERE gid = ?::uuid
+delete.artifact.data.by.artifact.id = DELETE FROM artifact_data WHERE artifact_id = ?
+delete.outs.by.artifact.id = DELETE FROM outs WHERE artifact_id = ?
+delete.facets.by.artifact.id = DELETE FROM facets WHERE out_id IN (SELECT id FROM outs WHERE artifact_id = ?)

http://dive4elements.wald.intevation.org