comparison flys-artifacts/src/main/resources/datacage-sql/org-postgresql-driver.properties @ 1025:02c327ffbad7

Datacage: Extended schema for artifacts and collections to have creation times, too. flys-artifacts/trunk@2484 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Wed, 10 Aug 2011 14:57:12 +0000
parents 1917f32701dc
children
comparison
equal deleted inserted replaced
1024:ba88157c6aa3 1025:02c327ffbad7
3 user.id.nextval = SELECT NEXTVAL('USERS_ID_SEQ') 3 user.id.nextval = SELECT NEXTVAL('USERS_ID_SEQ')
4 user.by.gid = SELECT id FROM users WHERE gid = ?::uuid 4 user.by.gid = SELECT id FROM users WHERE gid = ?::uuid
5 insert.user = INSERT INTO users (id, gid) VALUES (?, ?::uuid) 5 insert.user = INSERT INTO users (id, gid) VALUES (?, ?::uuid)
6 collection.by.gid = SELECT id FROM collections WHERE gid = ?::uuid 6 collection.by.gid = SELECT id FROM collections WHERE gid = ?::uuid
7 collection.id.nextval = SELECT NEXTVAL('COLLECTIONS_ID_SEQ') 7 collection.id.nextval = SELECT NEXTVAL('COLLECTIONS_ID_SEQ')
8 insert.collection = INSERT INTO collections (id, gid, user_id, name) VALUES (?, ?::uuid, ?, ?) 8 insert.collection = INSERT INTO collections (id, gid, user_id, name, creation) VALUES (?, ?::uuid, ?, ?, ?)
9 artifact.by.gid = SELECT id FROM artifacts WHERE gid = ?::uuid 9 artifact.by.gid = SELECT id FROM artifacts WHERE gid = ?::uuid
10 collection.item.id.nextval = SELECT NEXTVAL('COLLECTION_ITEMS_ID_SEQ') 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 (?, ?, ?) 11 insert.collection.item = INSERT INTO collection_items (id, collection_id, artifact_id) VALUES (?, ?, ?)
12 artifact.id.nextval = SELECT NEXTVAL('ARTIFACTS_ID_SEQ') 12 artifact.id.nextval = SELECT NEXTVAL('ARTIFACTS_ID_SEQ')
13 insert.artifact = INSERT INTO artifacts (id, gid, state) VALUES (?, ?::uuid, ?) 13 insert.artifact = INSERT INTO artifacts (id, gid, state, creation) VALUES (?, ?::uuid, ?, ?)
14 artifact.data.id.nextval = SELECT NEXTVAL('ARTIFACT_DATA_ID_SEQ') 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 (?, ?, ?, ?, ?) 15 insert.artifact.data = INSERT INTO artifact_data (id, artifact_id, kind, k, v) VALUES (?, ?, ?, ?, ?)
16 out.id.nextval = SELECT NEXTVAL('OUTS_ID_SEQ') 16 out.id.nextval = SELECT NEXTVAL('OUTS_ID_SEQ')
17 insert.out = INSERT INTO outs (id, artifact_id, name, description, out_type) VALUES (?, ?, ?, ?, ?) 17 insert.out = INSERT INTO outs (id, artifact_id, name, description, out_type) VALUES (?, ?, ?, ?, ?)
18 facet.id.nextval = SELECT NEXTVAL('FACETS_ID_SEQ') 18 facet.id.nextval = SELECT NEXTVAL('FACETS_ID_SEQ')

http://dive4elements.wald.intevation.org