Mercurial > dive4elements > framework
comparison artifact-database/src/main/resources/sql/org-postgresql-driver.properties @ 320:b46c5b13ac94
Extract the collection and artifact creation times when doing the initial, too.
artifacts/trunk@2482 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Wed, 10 Aug 2011 14:18:33 +0000 |
parents | 824051dff018 |
children | 560d2e6eaf9c |
comparison
equal
deleted
inserted
replaced
319:61017c6031b8 | 320:b46c5b13ac94 |
---|---|
170 | 170 |
171 collection.set.attribute= \ | 171 collection.set.attribute= \ |
172 UPDATE collections SET attribute = ? WHERE gid = ?::uuid | 172 UPDATE collections SET attribute = ? WHERE gid = ?::uuid |
173 | 173 |
174 all.artifacts = \ | 174 all.artifacts = \ |
175 SELECT u.gid AS u_gid, c.gid AS c_gid, c.name as name, \ | 175 SELECT u.gid AS u_gid, c.gid AS c_gid, c.name AS c_name, c.creation as c_creation, \ |
176 a.gid AS a_gid, a.factory AS factory, a.data AS data \ | 176 a.gid AS a_gid, a.factory AS factory, a.creation AS a_creation, a.data AS data \ |
177 FROM \ | 177 FROM \ |
178 users u INNER JOIN collections c ON u.id = c.owner_id \ | 178 users u INNER JOIN collections c ON u.id = c.owner_id \ |
179 INNER JOIN collection_items ci ON c.id = ci.collection_id \ | 179 INNER JOIN collection_items ci ON c.id = ci.collection_id \ |
180 INNER JOIN artifacts a ON a.id = ci.artifact_id \ | 180 INNER JOIN artifacts a ON a.id = ci.artifact_id \ |
181 ORDER BY u_gid, c_gid | 181 ORDER BY u_gid, c_gid |