Mercurial > dive4elements > framework
comparison artifact-database/src/main/resources/sql/org-h2-driver.properties @ 176:a0eff2227588
Added code to add artifacts to collections.
artifacts/trunk@1402 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 04 Mar 2011 17:51:15 +0000 |
parents | 16e6e661e6bf |
children | 535e4ea2ef9b |
comparison
equal
deleted
inserted
replaced
175:16e6e661e6bf | 176:a0eff2227588 |
---|---|
35 users.delete.id=DELETE FROM users WHERE id = ? | 35 users.delete.id=DELETE FROM users WHERE id = ? |
36 | 36 |
37 users.delete.collections=DELETE FROM collections where owner_id = ? | 37 users.delete.collections=DELETE FROM collections where owner_id = ? |
38 | 38 |
39 users.select.all=SELECT id, gid, name, role FROM users | 39 users.select.all=SELECT id, gid, name, role FROM users |
40 | |
41 collection.check.artifact=SELECT id FROM collections_items \ | |
42 WHERE artifact_id = ? AND collection_id = ? | |
43 | |
44 # COLLECTION ITEMS | |
45 collection.items.id.nextval=SELECT NEXTVAL('COLLECTION_ITEMS_ID_SEQ') | |
46 | |
47 collection.items.insert=INSERT INTO collections_items \ | |
48 (id, collection_id, artifact_id, attribute) \ | |
49 VALUES (?, ?, ?, ?) | |
40 | 50 |
41 # COLLECTIONS | 51 # COLLECTIONS |
42 collections.id.nextval=SELECT NEXTVAL('COLLECTIONS_ID_SEQ') | 52 collections.id.nextval=SELECT NEXTVAL('COLLECTIONS_ID_SEQ') |
43 | 53 |
44 collections.id.by.gid=SELECT id FROM collections WHERE gid = ? | 54 collections.id.by.gid=SELECT id FROM collections WHERE gid = ? |