comparison flys-artifacts/src/main/resources/datacage-sql/org-h2-driver.properties @ 3806:881fcd01e056

merged flys-artifacts/pre2.6-2011-11-04
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 28 Sep 2012 12:14:50 +0200
parents 02c327ffbad7
children
comparison
equal deleted inserted replaced
3802:e831dc29e572 3806:881fcd01e056
1 delete.all.users = DELETE FROM users
2 delete.all.artifacts = DELETE FROM artifacts
3 user.id.nextval = SELECT NEXTVAL('USERS_ID_SEQ')
4 user.by.gid = SELECT id FROM users WHERE gid = ?
5 insert.user = INSERT INTO users (id, gid) VALUES (?, ?)
6 collection.by.gid = SELECT id FROM collections WHERE gid = ?
7 collection.id.nextval = SELECT NEXTVAL('COLLECTIONS_ID_SEQ')
8 insert.collection = INSERT INTO collections (id, gid, user_id, name, creation) VALUES (?, ?, ?, ?, ?)
9 artifact.by.gid = SELECT id FROM artifacts WHERE gid = ?
10 collection.item.id.nextval = SELECT NEXTVAL('COLLECTION_ITEMS_ID_SEQ')
11 insert.collection.item = INSERT INTO collection_items (id, collection_id, artifact_id) VALUES (?, ?, ?)
12 artifact.id.nextval = SELECT NEXTVAL('ARTIFACTS_ID_SEQ')
13 insert.artifact = INSERT INTO artifacts (id, gid, state, creation) VALUES (?, ?, ?, ?)
14 artifact.data.id.nextval = SELECT NEXTVAL('ARTIFACT_DATA_ID_SEQ')
15 insert.artifact.data = INSERT INTO artifact_data (id, artifact_id, kind, k, v) VALUES (?, ?, ?, ?, ?)
16 out.id.nextval = SELECT NEXTVAL('OUTS_ID_SEQ')
17 insert.out = INSERT INTO outs (id, artifact_id, name, description, out_type) VALUES (?, ?, ?, ?, ?)
18 facet.id.nextval = SELECT NEXTVAL('FACETS_ID_SEQ')
19 insert.facet = INSERT INTO facets (id, out_id, name, num, state, description) VALUES (?, ?, ?, ?, ?, ?)
20
21 update.collection.name = UPDATE collections SET name = ? WHERE gid = ?
22 delete.artifact.from.collection = DELETE FROM collection_items WHERE collection_id = ? AND artifact_id = ?
23 delete.collection.by.gid = DELETE FROM collections WHERE gid = ?
24 delete.user.by.gid = DELETE FROM user WHERE gid = ?
25 delete.artifact.data.by.artifact.id = DELETE FROM artifact_data WHERE artifact_id = ?
26 delete.outs.by.artifact.id = DELETE FROM outs WHERE artifact_id = ?
27 delete.facets.by.artifact.id = DELETE FROM facets WHERE out_id IN (SELECT id FROM outs WHERE artifact_id = ?)
28
29 delete.artifact.by.gid = DELETE FROM artifacts WHERE gid = ?

http://dive4elements.wald.intevation.org