Mercurial > dive4elements > river
annotate flys-artifacts/src/main/resources/datacage-sql/org-h2-driver.properties @ 987:82ef338fee91
Datacage: Add collections at initial scan.
flys-artifacts/trunk@2419 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 28 Jul 2011 15:34:26 +0000 |
parents | 70545233f8ee |
children | dbe39e1fb5e7 |
rev | line source |
---|---|
984
2b05c4a0c6fd
Datacage: clear database before initial scan
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
983
diff
changeset
|
1 delete.all.users = DELETE FROM users |
986
70545233f8ee
Datacage: Add users at initial scan.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
984
diff
changeset
|
2 user.id.nextval = SELECT NEXTVAL('USERS_ID_SEQ') |
70545233f8ee
Datacage: Add users at initial scan.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
984
diff
changeset
|
3 user.by.gid = SELECT id FROM users WHERE gid = ? |
70545233f8ee
Datacage: Add users at initial scan.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
984
diff
changeset
|
4 insert.user = INSERT INTO users (id, gid) VALUES (?, ?) |
987
82ef338fee91
Datacage: Add collections at initial scan.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
986
diff
changeset
|
5 collection.by.gid = SELECT id FROM collections WHERE gid = ? |
82ef338fee91
Datacage: Add collections at initial scan.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
986
diff
changeset
|
6 collection.id.nextval = SELECT NEXTVAL('COLLECTIONS_ID_SEQ') |
82ef338fee91
Datacage: Add collections at initial scan.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
986
diff
changeset
|
7 insert.collection = INSERT INTO collections (id, gid, user_id, name) VALUES (?, ?, ?, ?) |