comparison artifact-database/src/main/resources/sql/org-h2-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
103 delete.user.collection.items= \ 103 delete.user.collection.items= \
104 DELETE FROM collection_items WHERE collection_id IN \ 104 DELETE FROM collection_items WHERE collection_id IN \
105 (SELECT id FROM collections WHERE owner_id = ?) 105 (SELECT id FROM collections WHERE owner_id = ?)
106 106
107 collections.insert= \ 107 collections.insert= \
108 INSERT INTO collections (id, gid, name, owner_id, creation, last_access, ttl) \ 108 INSERT INTO collections \
109 VALUES (?, ?, ?, ?, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, ?) 109 (id, gid, name, owner_id, creation, last_access, ttl, attribute) \
110 VALUES (?, ?, ?, ?, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, ?, ?)
110 111
111 collection.creation.time=SELECT creation from collections WHERE id = ? 112 collection.creation.time=SELECT creation from collections WHERE id = ?
112 113
113 collections.select.user= \ 114 collections.select.user= \
114 SELECT c.gid, c.name, c.creation, u.gid FROM \ 115 SELECT c.gid, c.name, c.creation, u.gid FROM \

http://dive4elements.wald.intevation.org