Mercurial > dive4elements > framework
comparison artifact-database/src/main/resources/sql/org-postgresql-driver.properties @ 199:face2302387c
Insert collection attribute into database, too.
Fixed broken SQL schema.
artifacts/trunk@1437 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Wed, 09 Mar 2011 11:14:21 +0000 |
parents | 94654cbf8db2 |
children | 199f0e553e3a |
comparison
equal
deleted
inserted
replaced
198:6370369412e9 | 199:face2302387c |
---|---|
102 delete.user.collection.items= \ | 102 delete.user.collection.items= \ |
103 DELETE FROM collection_items WHERE collection_id IN \ | 103 DELETE FROM collection_items WHERE collection_id IN \ |
104 (SELECT id FROM collections WHERE owner_id = ?) | 104 (SELECT id FROM collections WHERE owner_id = ?) |
105 | 105 |
106 collections.insert= \ | 106 collections.insert= \ |
107 INSERT INTO collections (id, gid, name, owner_id, creation, last_access, ttl) \ | 107 INSERT INTO collections \ |
108 VALUES (?, ?::uuid, ?, ?, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, ?) | 108 (id, gid, name, owner_id, creation, last_access, ttl, attribute) \ |
109 VALUES (?, ?::uuid, ?, ?, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, ?, ?) | |
109 | 110 |
110 collection.creation.time=SELECT creation from collections WHERE id = ? | 111 collection.creation.time=SELECT creation from collections WHERE id = ? |
111 | 112 |
112 collections.select.user= \ | 113 collections.select.user= \ |
113 SELECT c.gid, c.name, c.creation, u.gid FROM \ | 114 SELECT c.gid, c.name, c.creation, u.gid FROM \ |