Mercurial > dive4elements > framework
comparison artifact-database/src/main/resources/sql/org-h2-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 | 61017c6031b8 |
children | 560d2e6eaf9c |
comparison
equal
deleted
inserted
replaced
319:61017c6031b8 | 320:b46c5b13ac94 |
---|---|
181 | 181 |
182 collection.set.attribute= \ | 182 collection.set.attribute= \ |
183 UPDATE collections SET attribute = ? WHERE gid = ? | 183 UPDATE collections SET attribute = ? WHERE gid = ? |
184 | 184 |
185 all.artifacts = \ | 185 all.artifacts = \ |
186 SELECT u.gid AS u_gid, c.gid AS c_gid, c.name as name, \ | 186 SELECT u.gid AS u_gid, c.gid AS c_gid, c.name AS c_name, c.creation as c_creation, \ |
187 a.gid AS a_gid, a.factory AS factory, a.data AS data \ | 187 a.gid AS a_gid, a.factory AS factory, a.creation AS a_creation, a.data AS data \ |
188 FROM \ | 188 FROM \ |
189 users u INNER JOIN collections c ON u.id = c.owner_id \ | 189 users u INNER JOIN collections c ON u.id = c.owner_id \ |
190 INNER JOIN collection_items ci ON c.id = ci.collection_id \ | 190 INNER JOIN collection_items ci ON c.id = ci.collection_id \ |
191 INNER JOIN artifacts a ON a.id = ci.artifact_id \ | 191 INNER JOIN artifacts a ON a.id = ci.artifact_id \ |
192 ORDER BY u_gid, c_gid | 192 ORDER BY u_gid, c_gid |